错误同时产生的Andr​​oid应用程序签署应用程序、错误、Andr、oid

由网友(把我掐死算了)分享简介:而产生的Andr​​oid应用程序签我得到这个错误i am getting this error while generating android signed app Error:Execution failed for task ':app:dexRelease'.> com.android.ide.comm...

而产生的Andr​​oid应用程序签我得到这个错误

i am getting this error while generating android signed app

Error:Execution failed for task ':app:dexRelease'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

这是我的文件

推荐答案

我有同样的错误一次。对我来说,增加了Java的最大堆大小解决了这个错误。尝试添加

I had the same error once. For me increasing the Java maximum heap size solved the error. Try adding

android {
    ...
    dexOptions {
       javaMaxHeapSize "4g"
    }
    ...
}

您的build.gradle文件。

to your build.gradle file.

另一个原因这个错误可以为你的应用程序是到大,你需要启用multidex支持。请参阅建设与应用在65K方法

Another reason for this error can be that your app is to big and you need to enable multidex support. Please see Building Apps with Over 65K Methods

阅读全文

相关推荐

最新文章