我收到错误'原因:org.gradle.process.internal.ExecException:进程'command'/home/ec2-user/jdk1.8.0_45/bin/java'完成,返回值非零2',则提交Android构建请求。
我怀疑与Flurry CN1Lib有关]
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':transformClassesWithDexForRelease'.
Caused by: java.lang.RuntimeException: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {--dex --verbose --force-jumbo --num-threads=4 --output
急需更新cn1lib,以使用更新的Android API级别28作为当前默认位置。从长远来看,这是正确的事情。
作为一个短期补丁,您可能可以定义:构建提示中的android.playServicesVersion=8.3.0
可以解决此问题。请注意,这可能会影响您的应用程序的功能,例如位置服务支持等。