Skip to content Skip to sidebar Skip to footer

Android Studio: 'c:\program Files\java\jdk1.8.0_51\bin\java.exe'' Finished With Non-zero Exit Value 1

I am getting the non-zero exit value 1 while running the application in Android Studio. I tried all of the ways and can't fix it. I am using Windows7 32 bit and 4GB RAM. Any help w

Solution 1:

In my case, the solution was to close Android Studio and kill the java processs, which was very big . After this, my project runs normally.

Solution 2:

I just pressed on Clean PROJECT and worked for me ,thanks Ahmed Abdi

Solution 3:

Solution 1

1) Try to clean Project (Build > Clean)

2) Try to Rebuild Project (Build > Rebuild)

Solution 2

This can also happen due to less Ram, close studio and then kill all Java Process and the restart Android studio

Solution3

If none of the above work then try this

compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }

Add this to your gradle build in android {} it should work.

Post a Comment for "Android Studio: 'c:\program Files\java\jdk1.8.0_51\bin\java.exe'' Finished With Non-zero Exit Value 1"