Android studio Failed to create jvm

Failed to create JVM : error code -4. JVM Path: C:\Program Files\Java\jdk1.7.0_79\jre If you have already have a 32-bit JDK installed, define a JAVA_HOME variable

Upvotes: 0

Views: 2790

Answers (1)

Yan Chummar
Yan Chummar

Reputation: 63

Had the same problem

  • Only put one source in JAVA_HOME . example.C:\Program Files\Java\jdk1.7.0.79\jre
  • even that didnt worked try changing this file called studio.exe.vmoptions(32bit) and studio64.exe.vmoptions(64bit) which is situated in the installation directory of android studio\bin . change the line called -Xmx750m to -Xmx512m, it worked for me

Hope it would be useful

if any doubts please mention

Upvotes: 1

Related Questions