现象:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':android:lintVitalRelease'.
> Could not resolve all files for configuration ':android:lintClassPath'.
> Could not find org.jetbrains.trove4j:trove4j:20160824.
Searched in the following locations:
file:/D:/android-sdk-windows/extras/m2repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
file:/D:/android-sdk-windows/extras/m2repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
file:/D:/android-sdk-windows/extras/google/m2repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
file:/D:/android-sdk-windows/extras/google/m2repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
file:/D:/android-sdk-windows/extras/android/m2repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
file:/D:/android-sdk-windows/extras/android/m2repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
file:/C:/Users/admin/.m2/repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
file:/C:/Users/admin/.m2/repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
https://dl.google.com/dl/android/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
https://dl.google.com/dl/android/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
https://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
https://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
https://oss.sonatype.org/content/repositories/releases/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
https://oss.sonatype.org/content/repositories/releases/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
Required by:
project :android > com.android.tools.lint:lint-gradle:26.2.0 > com.android.tools.external.com-intellij:intellij-core:26.2.0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
在构建脚本中增加 jcenter()作为仓库,注意在 project(":android")里面加。
参考 Trove4j library cannot be resolved,再一次感谢膜拜 stackoverflow
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于