Android Studio Works Perfectly fine with Java 1.8
or Java 8
. I was also having invalid JVM error. The reason was including ";" (semicolon) at the end of JAVA_HOME
path value. The correct format for path value is:
C:\Program Files\Java\jdk1.8.0_xx (Replace xx with your current version)
Do not include ;
(semicolon) at the end of JAVA_HOME
value