title: Android Studio - Unrecognized VM option 'MaxPermSize=256m'
body: <p>I just installed Android Studio on Elementary OS 0.3 Freya and run it using the terminal. On my first start-up, however, there's an error message shown:</p>
  
  <blockquote>
    <p>Gradle 'Test' project refresh failed</p>
    
    <p>Unable to start the daemon process. This problem might be caused by
    incorrect configuration of the daemon. For example, an unrecognized
    jvm option is used. Please refer to the user guide chapter on the
    daemon at <a href="http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html" rel="noreferrer">http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html</a>
    Please read the following process output to find out more:</p>
    
    <p>Unrecognized VM option 'MaxPermSize=256m' Error: Could not create the
    Java Virtual Machine. Error: A fatal exception has occurred. Program
    will exit.</p>
  </blockquote>
  
  <p>I read <a href="https://stackoverflow.com/questions/27704587/gradle-project-sync-failed-basic-functionalitye-g-editing-debugging-will-not">this</a> and tried all the ways to solve it but to no avail. I did notice that his error was somewhat different from mine and thought that might be why I couldn't solve my problem using the ways suggested. </p>
  
  <p>As I executed the .sh file on my terminal, it printed:</p>
  
  <blockquote>
    <p>Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=250m;
    support was removed in 8.0</p>
    
    <p>(java:5094): Gtk-WARNING **: Unable to locate theme engine in
    module_path: "pixmap"</p>
    
    <p>Gtk-Message: Failed to load module "canberra-gtk-module"</p>
  </blockquote>
  
  <p>I'm not sure whether it's related to the error or not. Please help.</p>