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
All I had to do was run android studio as an administrator. Just right click on the icon on your desktop (do not try to do it with a shortcut pinned to your taskbar) and click run as administrator.