Reputation: 53
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?
Upvotes: 5
Views: 8012
Reputation: 35
it can be a 64 bit Problem, i had the same problem cause i installed x64 JDK 1.7 didn't work then i installed 32 bit version it worked and installation proceeded. It searches in the system32 folder so 32 bit JDK version is required
Upvotes: 1
Reputation: 2942
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:
Hope it does not work with JDK 1.6 :(
Upvotes: 2
Reputation: 61
Many android developer reported this problem you can solve it by
Upvotes: 0
Reputation: 8892
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.
Upvotes: 8