Java version judgment error … here is a solution to the problem.
Java version judgment error
I just installed Android Studio 1.04 on Ubuntu 1.04. I created a new project with the following error:
Error:Could not determine Java version using executable /usr/lib/jvm/java-1.5.0-gcj/bin/java.
My /usr/lib/jvm/
contains:
java-1.5.0-gcj java-7-oracle java-gcj
java-1.5.0-gcj-4.8-amd64 java-8-oracle java-gcj-4.8
The project structure sets the JDK location to /usr/lib/jvm/java-1.5.0-gcj.
Should I be given something else? I don’t know?
Thank you very much for your help!
Solution
I solved my problem by simply changing the JDK to /usr/lib/jvm/java-8-oracle
. I still don’t know why it would work, or why it should have been that way in the first place.
Sorry for the question.