I’ve try to build Android source code follow this guide: http://docs.khadas.com/develop/BuildAndroid/
But i got an error with jdk version. I’m currently install jdk 8 and the require version is jdk 7. I could not install jdk 7 by script: sudo apt-get install openjdk-7-jdk.
Please give me a solution for this issue. Thank you!
you should run sudo apt-add-repository ppa:webupd8team/java
then run sudo apt-get update
after that run sudo apt-get install oracle-java7-installer (if you need oracle version)
to change java version you can run sudo update-java-alternatives -s java-7-oracle
I’ve tried sudo apt-get install oracle-java7-installer
but jdk 7 have seem no longer existed. I’ve got error like below.
No one got issue which relate to jdk version when building android source code like me?