Netbeans8.2 使用 NBANDROID-V2 插件打包 libgdx android 项目报错

????? 本文由博客端 http://acuilab.com 主动推送
本贴最后更新于 771 天前,其中的信息可能已经物是人非

现象:

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")里面加。
image.png

参考 Trove4j library cannot be resolved,再一次感谢膜拜 stackoverflow

  • libgdx
    7 引用 • 3 回帖
  • Android

    Android 是一种以 Linux 为基础的开放源码操作系统,主要使用于便携设备。2005 年由 Google 收购注资,并拉拢多家制造商组成开放手机联盟开发改良,逐渐扩展到到平板电脑及其他领域上。

    310 引用 • 307 回帖 • 452 关注
  • NetBeans

    NetBeans 是一个始于 1997 年的 Xelfi 计划,本身是捷克布拉格查理大学的数学及物理学院的学生计划。此计划延伸而成立了一家公司进而发展这个商用版本的 NetBeans IDE,直到 1999 年 Sun 买下此公司。Sun 于次年(2000 年)六月将 NetBeans IDE 开源,直到现在 NetBeans 的社群依然持续增长。

    78 引用 • 102 回帖 • 522 关注

广告 我要投放

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...