Android Studio : Failed to create JVM error code : -1
<p>Please dont mark it as duplicate.</p>

<p>I did make changes as per other answers available when error code was -4.
Now it is showing error code : -1.</p>

<p>Kindly give me some direction.</p>

<p>here is my studio.exe.vmoptions file</p>

<pre><code> server
-Xms256m
-Xmx512m
-XX:MaxPermSize=250m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-da
-Djna.nosys=true
-Djna.boot.library.path=

-Djna.debug_load=true
-Djna.debug_load.jna=true
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-Didea.paths.selector=AndroidStudio2.1
-Didea.platform.prefix=AndroidStudio
</code></pre>