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)
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.
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.
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.