I just installed Android Studio 2.2 and from start I am getting this error.
Error: Process 'command'/usr/local/android-studio/jre/bin/java" finished with non-zero exit value 2
How can I fix this error?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
It's seems to you have not installed properly Oracle Java SDK 8? Please follow steps described here: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
I was facing same problem. It's because of wrong path selected by android-studio of JDK. Anyway, you can fix it by setting the path of JDK.
You can do it by opening Configure → Project Default → Project Structure inside Android Studio and set path of JDK.
/usr/local/java/jdk1.8.0_112or a similar directory.
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?