Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find com.android.tools.lint:lint-gradle:26.1.2. #20

Closed
erikadanis81 opened this issue Apr 24, 2018 · 5 comments
Closed

Could not find com.android.tools.lint:lint-gradle:26.1.2. #20

erikadanis81 opened this issue Apr 24, 2018 · 5 comments

Comments

@erikadanis81
Copy link

Hi,

Im just following the "Quickstart" tutorial in the documents and i come across this issue when i try to Build > Generate Signed APK.

Im running on Android Studio 3.1.2 and performed all prompted updates.

Any help would be greatly appreciated 😄

Could not find com.android.tools.lint:lint-gradle:26.1.2.
Searched in the following locations:
    file:/C:/Users/xxxx/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/lint/lint-gradle/26.1.2/lint-gradle-26.1.2.pom
    file:/C:/Users/xxxx/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/lint/lint-gradle/26.1.2/lint-gradle-26.1.2.jar
    file:/C:/Users/xxxx/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/lint/lint-gradle/26.1.2/lint-gradle-26.1.2.pom
    file:/C:/Users/xxxx/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/lint/lint-gradle/26.1.2/lint-gradle-26.1.2.jar
    file:/C:/Users/xxxx/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/lint/lint-gradle/26.1.2/lint-gradle-26.1.2.pom
    file:/C:/Users/xxxx/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/lint/lint-gradle/26.1.2/lint-gradle-26.1.2.jar
    https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.1.2/lint-gradle-26.1.2.pom
    https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.1.2/lint-gradle-26.1.2.jar
Required by:
    project :app
@erikadanis81
Copy link
Author

I have managed to resolve it. I needed to add the google() repository to my build.gradle file.

buildscript {
    repositories {
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

@jvcodes
Copy link

jvcodes commented Nov 2, 2018

i have changed classpath from 'com.android.tools.build:gradle:3.1.2'
classpath to 'com.android.tools.build:gradle:3.1.3' its worked for me

@abolfazlMKazemi
Copy link

i have problem

@jeetwide
Copy link

@tvjagadeesh thanks. it worked for me.

@mayankneeds
Copy link

i have changed classpath from 'com.android.tools.build:gradle:3.1.2'
classpath to 'com.android.tools.build:gradle:3.1.3' its worked for me

It Worked for me, Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants