Android compilation error: Process ' command ' C:\Java\jdk1.8.0_51\bin\java.exe ' finished with Non-zero exit value 1 resolved!

Source: Internet
Author: User

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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.