Android Compilation error: Process ' command ' C:\Java\jdk1.8.0_51\bin\java.exe ' finished with Non-zero exit value 1 resolved!
Just transferred from Eclipse to Android studio, the system default Hello World code project was built after installation, but the following error occurred:
Process ' command ' C:\Java\jdk1.8.0_51\bin\java.exe ' finished with Non-zero exit value 1
This Nima, start Baidu! Basically no solution Ah, the final basically turned over, on GitHub saw a few answers:
1. Open Build.gradle (Moudule:app) to add the following in the corresponding module:
1 defaultconfig { 2 3 • • • 4 multidexenabled true 5 }
And then recompile it (remember to clean it first) "Some people say it's solved but it's not working for me."
2. Open Build.gradle (Moudule:app) to add the following in the corresponding module:
1 Dependencies { 2 // Change the compile of this line to provided3 Testcompile ' junit:junit:4.12 ' 4 compile ' com.android.support:appcompat-v7:23.4.0 ' 5 Compile ' com.android.support:design:23.4.0 ' 6 }
Recompile (remember to clean)"Some people say it's settled, but it's not for me."
3. Open Project structure to change Build Tools version to 23.0.1!
Such as:
OK, my mistake disappeared, I was solved by the third kind! If you have solved it, please praise it! After all, they looked for a long time!
Android compilation error: Process ' command ' C:\Java\jdk1.8.0_51\bin\java.exe ' finished with Non-zero exit value 1 resolved!