Android studio java.exe finished with non-zero exit value 3

前端 未结 5 2098
情深已故
情深已故 2021-01-02 10:19

I have pass through non-zero exit value 1,2, related to multidex issue, but now I am getting non-zero exit value 3.

Studio Message :

Information:Grad         


        
5条回答
  •  醉酒成梦
    2021-01-02 10:31

    When your project contains large number of classes, android studio will throw out non-zero exit value 3 error.

    To solve the error, add this in build.gradle file and sync project with gradle.

    dexOptions {
        javaMaxHeapSize "4g"
    }
    

提交回复
热议问题