Hi Friends,
If you are facing this problem
Then here is the solution:
Go to C:\Program Files\Android\Android Studio\bin\studio.exe.vmoptions
or open the path where you have installed your Android Studio and open the "studio.exe.vmoptions" file in Notepad or Notepad++.
Open it in Notepad or Notepad ++ and change the following attributes
-Xmx512m to -Xmx256m
-XX:MaxPermSize=250m to -XX:MaxPermSize=128m
OR
-Xmx750m to -Xmx512m
-XX:MaxPermSize=350m to -XX:MaxPermSize=250m
If you are facing this problem
failed to create jvm error code -4 JVM Path: C:\Program Files\Java\jdk1.7.0_45\jre If you already have a 32-bit JDK installed, define a JAVA_HOME variable in Which is not solved.
Then here is the solution:
Go to C:\Program Files\Android\Android Studio\bin\studio.exe.vmoptions
or open the path where you have installed your Android Studio and open the "studio.exe.vmoptions" file in Notepad or Notepad++.
Open it in Notepad or Notepad ++ and change the following attributes
-Xmx512m to -Xmx256m
-XX:MaxPermSize=250m to -XX:MaxPermSize=128m
OR
-Xmx750m to -Xmx512m
-XX:MaxPermSize=350m to -XX:MaxPermSize=250m