I have updated android studio to 2.2.0 . It is is not going to restart again it prompt for "Cannot start under Java 1.7.0_101-b00: Java 1.8 or later is required."
I am using jdk 8 .
echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle
Java 8 applications use packages as a top-level component whereas Java 9 applications use modules as a top-level component. Each Java 9 module has only one module with one module descriptor whereas Java 8 package doesn't build multiple modules into a single module.
Java SE 8 has gone through the End of Public Updates process for legacy releases. Oracle will continue to provide free public updates and auto updates of Java SE 8 indefinitely for Personal, Development and other Users via java.com.
I had the same problem under Ubuntu system. In my case problem was solved in few steps:
Delete old android-studio
Install java 8
[Commands for java 8 installation]
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
[Verify installed java]
$ java -version
$ javac -version
[Command for set java 8 as default]
$ sudo apt-get install oracle-java8-set-default
[In my case for java 7 version]
rm -r java-7-oracle
Restart your computer
Install Android Studio as mentioned in https://developer.android.com/studio/install.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With