I am getting error improperly specified VM option on Android IDE

5.2k Views Asked by At

I just installed new version of Android IDE today on my

D:\program file\Android

and installed java 1.5.0_6 JDK on C drive. I pointed out this path in a system environment

JAVA_HOME C:\Program Files\Java\jdk1.5.0_06\ ( user veriable)

JAVA_HOME C:\Program Files\Java\jdk1.5.0_06\jre\bin\javaw.exe ( system veriable)

after that image getting an error please check this image.. enter image description here

2

There are 2 best solutions below

0
pankaj On

I was using old JDK. so that i was getting error. so use JDK-1.8.* for fix this problem. In my case i tried many versions then i got success 1.8.

2
Ketan Ramteke On

If you added some custom vmoptions then you can simply edit them with proper versions or better delete them.

go to C:\Users\%USERNAME%\AppData\Roaming\Google\AndroidStudiox.x

and spot the file named

studio64.exe.vmoptions

If you know how to edit it correctly which depends on the version of Android Studio, JDK and other aspects then edit it, in my case I just deleted it.

Restart your Android Studio.