Android java studio completed with nonzero output value 2

I installed java jdk1.8.0_111 and installed Android studio in ubuntu 16.04 (32 bit), but when I start Android studio, I get the message:

Error:Process 'command '/usr/local/android-studio/jre/bin/java'' finished with non-zero exit value 2

print screen

What should I do?

+5
source share
1 answer

I have found a solution. I think Android Studio used 2 java compilers, one built into android studio, and the other the one I installed to install Android Studio.

In Android Studio , in the menu File → Project Structure : change the default JDK location directory to your own, in my case it was:

/ Usr / local / android studio / jre

and i changed to

/usr/local/java/jdk1.8.0_111 #path_to_your_jdk

which is the version I installed.

Picture of the window

+11
source

Source: https://habr.com/ru/post/1259982/


All Articles