Netbeans8.2使用NBANDROID-V2插件打包libgdx android项目报错
现象:
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")里面加。