• Register
0 votes
92 views

Problem :

I have updated my Android Studio to 3.0 but now facing the lot of issues.. So now stopped on the point with below issue:

Could not resolve all files for configuration ':applib:_lintClassPath'.
> Could not find com.android.tools.lint:lint-gradle:26.1.0-alpha01. 
Searched in the following locations:
      file:/Users/alecxe/Library/Android/sdk/extras/m2repository/com/android/tools/lint/lint-gradle/26.1.0-alpha01/lint-gradle-26.1.0-alpha01.pom
      file:/Users/alecxe/Library/Android/sdk/extras/m2repository/com/android/tools/lint/lint-gradle/26.1.0-alpha01/lint-gradle-26.1.0-alpha01.jar
      file:/Users/alecxe/Library/Android/sdk/extras/google/m2repository/com/android/tools/lint/lint-gradle/26.1.0-alpha01/lint-gradle-26.1.0-alpha01.pom
      file:/Users/alecxe/Library/Android/sdk/extras/google/m2repository/com/android/tools/lint/lint-gradle/26.1.0-alpha01/lint-gradle-26.1.0-alpha01.jar
      file:/Users/alecxe/Library/Android/sdk/extras/android/m2repository/com/android/tools/lint/lint-gradle/26.1.0-alpha01/lint-gradle-26.1.0-alpha01.pom
      file:/Users/alecxe/Library/Android/sdk/extras/android/m2repository/com/android/tools/lint/lint-gradle/26.1.0-alpha01/lint-gradle-26.1.0-alpha01.jar
      https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.1.0-alpha01/lint-gradle-26.1.0-alpha01.pom
      https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.1.0-alpha01/lint-gradle-26.1.0-alpha01.jar
      https://jitpack.io/com/android/tools/lint/lint-gradle/26.1.0-alpha01/lint-gradle-26.1.0-alpha01.pom
      https://jitpack.io/com/android/tools/lint/lint-gradle/26.1.0-alpha01/lint-gradle-26.1.0-alpha01.jar
      file:/Users/alecxe/dev/project/dk_shopping_checklist/augmented/libs/lint-gradle-26.1.0-alpha01.jar
      file:/Users/alecxe/dev/project/dk_shopping_checklist/augmented/libs/lint-gradle.jar 
Required by:
project :applib

I am currently using latest gradle version as: "gradle-4.2.1-all.zip".

Does anyone know what my issue can be?

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I have gone through your question and I understood it. I had faced the similar issue in the past and so know the solution on it.

If you are running the lint on a project that you have created using the older version of Android Studio then you may encounter the error.

To fix this issue for each of the project that you would like to run lint on please include Google's Maven repository in your top-level build.gradle file, as shown in below example:

allprojects {

    repositories {

        // The order in which you list these repositories does matter.

        google()

        jcenter()

    }

}

 

OR

You can fix your issue by adding the https://mvnrepository.com/artifact/com.android.tools.lint/lint-gradle-api repository to your build.gradle as shown below :

repositories {
    maven {
        url 'https://maven.google.com/'
        name 'Google'
    }
    jcenter()
    maven {
        url 'https://mvnrepository.com/artifact/com.android.tools.lint/lint-gradle-api'
    }
}
9 7 4
38,600 points

Related questions

0 votes
1 answer 79 views
79 views
Problem : I have the Android Studio Beta. I have created the new project with compiling my old modules but when I tried launching my app it did not launch and it gave me the below message: Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. com ... merge dex But I am unable to know how to fix above error. I researched on this for hours but with no success.
asked Jan 31, 2020 jwilliam 3.9k points
0 votes
1 answer 552 views
552 views
Problem : Using new android studio with new 3.0.0 Gradle pluging. When building some warning occurred as follows: registerResGeneratingTask is deprecated, useregisterGeneratedFolders(FileCollection)
asked Nov 30, 2019 alecxe 7.5k points
0 votes
1 answer 36 views
36 views
Problem: I am getting below error with the last line: “Error: expected resource of type styleable [resourcetype]”. I am trying to pass the 'index' instead of the resource. I considered it was the lint issue and so tried to suppress it. Then I ... == null) return;         mPaddingLeft = ta.getDimensionPixelSize(0, 0);         mPaddingRight = ta.getDimensionPixelSize(1/*error here*/, 0);
asked Jul 8, 2020 Raphael Pacheco 4.9k points
0 votes
2 answers 188 views
188 views
Problem : My android studio was getting build error while build execution as following: Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex"
asked Dec 4, 2019 alecxe 7.5k points
0 votes
1 answer 45 views
45 views
Problem: I am at the moment facing below error in my android studio after importing my Project: Error:(16, 0) Gradle DSL method not found: 'android()' Possible causes: The project 'LoginActivity' may be using a version of Gradle that does not contain the method. ... fuctionality (eg: editing, debugging) will not work properly. Please guide me to get rid of the above problem as soon as possible.
asked Sep 1, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 9 views
9 views
I am trying to obtain the latitude and longitude value from the address using PHP.
asked Sep 25, 2020 Daniel Anderson 4k points
0 votes
1 answer 467 views
467 views
Problem : I am facing the gradle error at the building from few days it just came randomly. My project depends on the multiple libraries and it built without the problems until few days (even with a libraries) ... .gradle.api.internal.changedetection.state.CacheLockReleasingTaskExecuter$1.run(CacheLockReleasingTaskExecuter.java:40) at org.gradle.internal.Factories$1.create(Factories.java:26)
asked Jan 30, 2020 jwilliam 3.9k points