Avinash
Avinash

Reputation: 31

Android studio won't start (Unable to create JVM error)

Android studio was working fine till today morning but when I opened studio today it shows can't start. Shows error:

enter image description here

Searched the internet and SO, but couldn't find the answer. any suggestion will be appreciated. i have set the JAVA_HOME path correctly. i have used studio and developed projects also using it.

Upvotes: 2

Views: 1087

Answers (3)

VirtualBlade
VirtualBlade

Reputation: 61

Try this also

Delete this file : (Tested on Windows)

%USERPROFILE%\.AndroidStudiox.x\studio64.exe.vmoptions

(Keeping a backup of this file is recommended)

replace x.x with your Android studio version

The file is used to manually set java virtual machine parameters for android studio. Faulty configuration might cause the software not to start.

Upvotes: 3

Jyo the Whiff
Jyo the Whiff

Reputation: 839

Very simple trick worked for me.Though JAVA_HOME was set, it was giving an error.

To make it correct, close the error message window first, then go to environment variable settings of the system, say Edit JAVA_HOME, do not edit just say save/ok. and restart the Android Studio.

Tada... its happily working ever after :) !

Upvotes: 0

T.Todua
T.Todua

Reputation: 56371

You have to try to rename .AndroidStudio2.x.

please refer to topic - JDK error when trying to start Android Studio

Upvotes: 0

Related Questions