Process 'command 'Java\jdk\bin\java.exe'' finished with non-zero exit value

Android Studio 解决编译内存不够 

编译过程中遇到 

Process 'command 'java\jdk\bin\java.exe'' finished with non-zero exit value 2

解决:

set _JAVA_OPTIONS="-Xmx2g"

加入这句话到gradle.bat中 再重新编译

你可能感兴趣的:(Android)