Java SDK 7 required (but is not mentioned)

Create issue
Issue #97 resolved
Germanunkol created an issue

I've followed the tutorial on building on Linux (Arch) and have run into an issue where it refused to build. Because I have never build anything using the android sdk, it took me quite a while to figure out that the issue is that I did not have the open jdk7 installed. Since I had 8 installed I pointed the JAVA_HOME variable to that, but it just wouldn't build. Running this fixed it for me:

sudo pacman -Ss jre7-openjdk jre7-openjdk-headless jdk7-openjdk 
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk/

AFAIK the fact that it has to be java 7 which is installed isn't mentioned here anywhere, would be nice if it was written on the Linux building page. .

Comments (3)

  1. Martin Felis repo owner

    Yes you are correct. It seems that Android does not yet fully support Java 8. Would be great if you could add a note to the page. It's a wiki after all :D.

  2. Germanunkol reporter

    Thanks!

    I didn't know if the error was on my side and whether it was even relevant to anyone else - so I never even considered adding it myself.

    Thanks for confirming and adding it!

  3. Log in to comment