我正在尝试在 IntelliJ IDEA 中运行由 libGDX 实用程序生成的 Gradle Android 任务(桌面任务运行良好),但我只收到此非特定错误消息。有什么问题,或者日志在哪里,或者如何启用日志?
Information:Gradle: Executing tasks: [:core:assemble, :android:assembleDebug]
Information:24. 10. 2015 16:58 - Compilation completed with 1 error and 0 warnings in 9s 415ms
Error:Gradle: Execution failed for task ':android:proguardDebug'.
> java.io.IOException: Please correct the above warnings first.
PS:不确定是否相关,但我已经修改了构建文件和 ProGuard 文件以支持 Scala,如 there 所述.
最佳答案
我没有找到从 IntelliJ IDEA 获取任何有用日志的方法。我通过从控制台运行 Gradle 解决了这个问题。
gradlew assemble --stacktrace --info
问题是 Gradle 找不到
tools.jar
.添加系统环境变量JAVA_HOME
指向 Java SDK 目录解决了这个问题。
关于android - Gradle Android 任务因错误不明而崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33319660/