Android studio 3.1.3 isn't running and displaying error posted below(image). I have set the jdk path in "Environment Variables" but still the problem persists. Reinstalling Android Studio after deleting the user data isn't helping. Do post other alternative way to fix this.
ps- I have changed jdk version from settings in Android studio to a more latest version(ie 1.6 to 1.8). On restart of AS the problem started.
I installed AS 2.1.3 removing AS 3.1.3, AS 2.1.3 is working fine.
Failed to create JVM:error code -1
JVM Path: C:\\Program Files\\Android\\Android Studio\\jre\\jre
If you already have a 64 bit JDK installed, define a JAVA_HOME variable in
Computer >System properties> System settings> Environment Variables.
Here is an image for help:
Control Panel
System
Advanced system settings
Environment Variable
System Variable
try to find JRE_HOME
if exist, change the Variable Value
where you install the java and then select the jre folder, if not exist, add new variable with JRE_HOME
for Variable Name
and where you install the java and then select the jre folder for Variable Value
. Android Studio
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.