I was just updated my last Android Studio and got this error:
failed to create jvm error code -4 JVM Path: C:\\Program Files\\Java\\jdk1.7.0_45\\jre
For Android Studio 4+ You need to remove «\studio.exe.vmoptions» or «studio64.exe.vmoptions» Here is the path
C:\Users\%USERNAME%\AppData\Roaming\Google\{studio version}