Error execute studio.sh unrecognized vm option ‘MaxPermSize=350m’ on Ubuntu 14.04

Help! Error to Execute/Install studio.sh on Ubuntu
Like this >>>

dani@dani-pc:~$ cd android-studio/bin
dani@dani-pc:~/android-studio/bin$ ./studio.sh
Unrecognized VM option ‘MaxPermSize=350m’
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

And with some knowledge after searching on search engines, I open the studio.vmoptions file in edit mode and I found the following entries in the file.

-server
-Xms128m
-Xmx512m
-XX:MaxPermSize=250m
-XX:ReservedCodeCacheSize=150m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Djna.nosys=true
-Djna.boot.library.path=

-Djna.debug_load=true
-Djna.debug_load.jna=true
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Dawt.useSystemAAFontSettings=lcd

I had been looking for a solution to this problem but I did not find it. This may be a trivial problem but i stuck with this and confusion how to solve it, what should I do? please help!


Source: ubuntu

2 Comments

  1. devansh trivedi

    Which JDK version have you installed?

    Reply
  2. Edwin

    Oh I’ve solved this problem, I install Oracle JDK 9 when android studio runs on JDK 6 or JDK 7 (if I’m not mistaken). so I uninstalled Oracle JDK 9, then download and install the JDK 7.

    Reply

Leave a Reply