Android Studio compilation project error: java.exe ''' finished with non-zero exit value 1. java.exe non-zero
After three days, the Android Studio compilation error is solved!
I tried different solutions in three days for different aspects, but there is only one truth!
Original problem scenario: the following error will be reported after compilation because the project is very large:
Error: Execution failed for task': dexappdebug'.> com. android. ide. common. process. processException: org. gradle. process. internal. execException: Process 'COMMAND 'C: Program FilesJavajdk1.8.0 _ 25 in java.exe ''finished with non-zero exit value 1
Memory usage during runtime of the worker is large.
The computer configuration may not be enough, so I began to constantly try to modify memory usage and finally made progress. The key code is in build. gradle:
DexOptions {javaMaxHeapSize "xx "}
Xx is the reasonable memory size. If you have encountered this problem, try again ~
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.