android / android/testing-samples

Could not find lint-gradle-api.jar

Open
#219 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9.3k
Forks
3.6k
PR merge metrics
No merged PRs in 30d

Description

I was receiving an error when importing the repo.

`Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find lint-gradle-api.jar`

It was fixed by swapping `google()` to be above `jcenter()` in the buildscript.

```
buildscript {
repositories {
google()
jcenter()
}
}
```

Contributor guide

Open the contributing guide

Research direction

Start by locating the buildscript repository configuration mentioned in the issue and review its repository order. Check whether placing google() before jcenter() resolves the lint-gradle-api.jar import error; the issue gives no file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.