Android构建失败 [英] Android build fails in codenameone build sever
问题描述
我的android构建在构建后失败,这是我得到
的错误日志总时间:1分钟16.631秒
停止了0个编译器守护进程。
接收到的结果失败[value = org.gradle.initialization.ReportedException:org.gradle.internal.exceptions.LocationAwareException:任务':dexRelease'的执行失败。]来自守护程序DaemonInfo {pid = 5907,address = [10331ba5 -2501-41cc-aa13-52a0ba46bd51端口:41817,地址:[/ 0:0:0:0:0:0:0:0:1%1,/ 127.0.0.1]],idle = false,context = DefaultDaemonContext [uid = 2862cb6d-50e8-4321-a1fa-590435e89f0f,javaHome = / usr / java / jdk1.7.0_67,daemonRegistryDir = / home / ec2-user / .gradle / daemon,pid = 5907,idleTimeout = 120000,daemonOpts = -XX: MaxPermSize = 512m,-XX:+ HeapDumpOnOutOfMemoryError,-Xmx1500m,-Dfile.encoding = UTF-8,-Duser.country = US,-Duser.language = zh-CN,-Duser.variant]}(应完成构建)。 / p>
My android build fails after build and this is the error log i get Total time: 1 mins 16.631 secs Stopped 0 compiler daemon(s). Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':dexRelease'.] from daemon DaemonInfo{pid=5907, address=[10331ba5-2501-41cc-aa13-52a0ba46bd51 port:41817, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]], idle=false, context=DefaultDaemonContext[uid=2862cb6d-50e8-4321-a1fa-590435e89f0f,javaHome=/usr/java/jdk1.7.0_67,daemonRegistryDir=/home/ec2-user/.gradle/daemon,pid=5907,idleTimeout=120000,daemonOpts=-XX:MaxPermSize=512m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1500m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done).
推荐答案
这可能与此有关: https://www.codenameone.com/blog/video-new-defaults-barcode-qrcode-changes.html
您可以使用解决此问题生成提示中的android.gradle = false
。但是,我猜测它与您添加的某些cn1lib或构建提示有关。但是看来您提供的构建错误日志是不完整的,所以我在那里看不到任何问题。
You can workaround this by using android.gradle=false
in the build hints. However, I'm guessing its related to some cn1lib or build hint you added. But it seems the build error log you provided is partial so I don't see any issue there.
这篇关于Android构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!