Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
689 views
in Technique[技术] by (71.8m points)

failed to create jvm:error code -6 android studio

i set -XmxheapSize:-Xmx2g in Custom VM Options and run jps -lvm in console after this android studio not lunch and error

failed to create jvm:error code -6 android studio

i restart pc and re-install android studio but not working!!!

please hlep

my system operation windows 10 64-bit

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

How I have solved the error. Frst I played so many times with JAVA_HOME and Path sections doesnt work at all. Then Removed the Android Studio so reinstalled not worked again. Also I have played with the values of C:Program FilesAndroidAndroid Studioin studio.exe.vmoptions not worked again. Last thing that I done is the picture below; I removed the .AndroidStuido1.5 (3gb)not worked again finnaly I removed .AndroidStuido2.2 and started A.S again it worked. I am not sure what caused the error maybe there is some kind of capacity that I have reached by creating so many project, dont know. By the way I returned to jdk1.7. It was jdk1.8 before actualy I recomend to remove the .AndroidStuido(version) first. Hope it will help others I spent so many hours.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...