I can't compile a default new project for Android 2.1 because(?) the JDK used by Android Studio is JDK 1.7 but it should be JDK 1.6.
To change it I go to File -> Project Structure and try to find the JDK 1.6 location.
But when I select its directory and press OK I get the following error:
Please choose a valid JDK directory
As you can see on the screenshoot I'm trying to set Java 6 OpenJDK 64-bits as the new JDK.
What can I do? Isn't Android Studio compatible with OpenJDK and should I use Oracle JDK instead?
bin
folder?./bin
|./jre
|./jre/bin
same message for all/jre
in the directory structure, so my path is/usr/lib/jvm/java-8-oracle
and not/usr/lib/jvm/java-8-oracle/jre
. I assumed the path should end in/jre
since the default path (the "embedded" JDK) does, but it turns out if you go look in the default folder, it's a folder called "jre" which contains another folder called "jre".