找不到com.android.tools.lint:lint-gradle:26.1.4

时间:2018-12-03 16:29:10

标签: android android-studio

我无法生成APK,您能建议我为我找到解决方案吗?

找不到com.android.tools.lint:lint-gradle:26.1.4。 在以下位置搜索:     文件:/ C:/Users/hp/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/lint/lint-gradle/26.1.4/lint-gradle-26.1.4.pom     文件:/ C:/Users/hp/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/lint/lint-gradle/26.1.4/lint-gradle-26.1.4.jar     文件:/ C:/Users/hp/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/lint/lint-gradle/26.1.4/lint-gradle-26.1.4.pom     文件:/ C:/Users/hp/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/lint/lint-gradle/26.1.4/lint-gradle-26.1.4.jar     文件:/ C:/Users/hp/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/lint/lint-gradle/26.1.4/lint-gradle-26.1.4.pom     文件:/ C:/Users/hp/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/lint/lint-gradle/26.1.4/lint-gradle-26.1.4.jar     https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.1.4/lint-gradle-26.1.4.pom     https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.1.4/lint-gradle-26.1.4.jar 要求:     项目:app

1 个答案:

答案 0 :(得分:1)

这是由于编译器中命令行选项中的--offline参数引起的。我卸下后,解决了! enter image description here