Error creating a new project after updating Android Studio 2.2

5

Greetings fellow, it turns out that after upgrading to Android Studio 2.2 (I had the 2.1) now I can not create new projects because I get this error:

Error: 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 link

Please read the following process output to find out more:

Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap

Has the same happened to someone? my laptop is a HP AMD dual-Core with 3GB of RAM, because this new update does not let me create new projects? until version 2.1 had been working without problems, thanks for your comments

    
asked by Alvaro C. 25.09.2016 в 17:05
source

4 answers

2

I have updated and installed several times the Android Studio 2.2 and I have not had any problem

According to your error message the problem is when starting the Daemon:

  

Error: 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    link   Please read the following process output to find out more:    Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap

The error indicated emphasizes that the Virtual Machine can not reserve enough space ...

Go to Help > Edit Custom VM OPtions...

You will surely be asked to create the file studio.vmoptions , inside you add the following configuration:

-Xms256m 
-Xmx2048m 
-XX:MaxPermSize=512m 

Try again!

    
answered by 25.09.2016 в 18:07
1

Hi, I had this problem recently, I managed to solve it with one of the answers mentioned Here by @Shiri

Basically what it says is that you must:

  • Open the gradle.properties file of your project
  • Add this line org.gradle.jvmargs = -Xmx1024m (you may already have it but with another value, in that case replace it).
  • Re-sync the gradle.
  • I hope that serves you, I had the same problem and that's how I solved it.

    Greetings

        
    answered by 25.10.2016 в 06:30
    0

    It's a problem I had in 2015 when I updated, the solution that worked for me was to close android studio, then go to the folder .gradle and change its name, running again android studio worked well.

        
    answered by 25.09.2016 в 17:19
    0

    I've been investigating this error and I found the answer after searching a bit and found the answer.

    I think the response on the website: www .experts-exchange.com / ...

    This problem occurs because the memory reserved for the IDE is too low. so what we need to cancel is them.

    Proceed like this ...

    With Android IDE open, just add this line of code in gradle.properties

    org.gradle.jvmargs=-Xmx1024m -XX\:MaxPermSize\=512m
    

    and now u Click on Try Again ...

    The file would look like this:

    org.gradle.jvmargs=-Xmx1024m -XX\:MaxPermSize\=512m
    
    # Project-wide Gradle settings.
    
    # IDE (e.g. Android Studio) users:
    # Gradle settings configured through the IDE *will override*
    # any settings specified in this file.
    
    # For more details on how to configure your build environment visit
    # http://www.gradle.org/docs/current/userguide/build_environment.html
    
    # Specifies the JVM arguments used for the daemon process.
    # The setting is particularly useful for tweaking memory settings.
    
    # When configured, Gradle will run in incubating parallel mode.
    # This option should only be used with decoupled projects. More details, visit
    # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
    # org.gradle.parallel=true
    

    I hope it helped you.

        
    answered by 01.11.2016 в 14:32