【发布时间】:2015-08-15 02:56:59
【问题描述】:
在 jenkins 本地成功运行时,android 构建失败,以下是构建输出:
:app:compileDebugJavaNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
advice defined in hugo.weaving.internal.Hugo has not been applied [Xlint:adviceDidNotMatch]
:app:compileRetrolambdaDebugobjc[91376]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileRetrolambdaDebug'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
【问题讨论】:
-
您解决了这个问题吗?目前有同样的问题,不要认为它是多个 JRE,因为当它通过时我在本地也得到了那个错误。
-
我做了一些研究,这似乎是java端的一个错误,它已经开放了一段时间,一旦我得到它,我会分享链接。目前,遇到此问题后再次运行构建,已修复它。不确定确切的根本原因,我想它会随机执行一些导致此问题的代码。
-
我现在似乎一直在失败,两天前还好:/
-
解决了几乎相同的问题,将
gradle-retrolambda插件的版本从3.1.0更新为3.2.2(最新)。 -
我通过将 compile 'io.reactivex:rxjava:1.0.14' 添加到我的 gradle 依赖项来解决此问题。不过不确定是不是你的情况。
标签: android jenkins gradle retrolambda