Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio run on Windows 7 64bit fails

I had successfully installed Android Studio on Windows 7 64bit , but when I started it , it's not work and show nothing . Then I appended the pause command to the end of the studio.bat .

When I execute via CMD, I get the following error:

Unrecognized VM option '+UseCodeCacheFlushing'

Could not create the Java virtual machine.

My Jdk version is JDK 1.6

I would like to ask how to solve it?

like image 998
KevinLc Avatar asked May 16 '13 15:05

KevinLc


2 Answers

Go to your install directory

C:\Program Files (x86)\Android\android-studio\bin

and copy the files

studio64.exe.vmoptions
studio.exe.vmoptions

to your documents. Edit them and remove the line

-XX:+UseCodeCacheFlushing

in each. Then copy them back to

C:\Program Files (x86)\Android\android-studio\bin

and try to relaunch again.

like image 86
rcbevans Avatar answered Sep 23 '22 06:09

rcbevans


Hey I have found the solution!

Just update to JDK 1.7!

And Set latest installed JDK path in both JAVA_HOME and JDK_HOME environment variables.

In my case it is as follows:

  • JDK_HOME->C:\Program Files\Java\jdk1.7.0_21
  • JAVA_HOME->C:\Program Files\Java\jdk1.7.0_21

Hope it does not work with JDK 1.6 :(

like image 42
Muhammad Riyaz Avatar answered Sep 24 '22 06:09

Muhammad Riyaz