Skip to content Skip to sidebar Skip to footer

Java Version Determination Error

I just install Android Studio 1.5 on Ubuntu 14.04. I created a new project and I get the following error: Error:Could not determine Java version using executable /usr/lib/jvm/java-

Solution 1:

I solved my problem by simply changing the JDK to /usr/lib/jvm/java-8-oracle. I still don't know why it works, or why it should have been like this at the first place. Sorry for the question.


Solution 2:

The problem occurred because location of the JDK directory was not defined correctly. In Android studio File ->Project structure ->in left side tabs click on SDK location->define the directory where JDK is located . For example:/usr/lib/jvm/java-8-oracle/jdk1.8.0_77 is my directory of JDK.The location can be different.


Solution 3:

Another variant:

Replace homePath value in ~/.AndroidStudio1.5/config/options/jdk.table.xml on /usr/lib/jvm/java-8-oracle/bin/java


Post a Comment for "Java Version Determination Error"