Androidstudio the exception (Gradle sync failed) that occurs during the use of the process _android

Source: Internet
Author: User

Exceptions that occur during Androidstudio use

Exception information:

 Gradle sync failed:unable to start the daemon process.
   This problem might is caused by incorrect configuration of the daemon.
   For example, a unrecognized JVM option is used.
   Please refer to the "User Guide chapter on" Daemon at https://docs.gradle.org/2.10/userguide/gradle_daemon.html
   Ple ASE read the following process output to find more:
   -----------------------
   Error occurred during Initializati On of VMs
   could not reserve enough spaces for object heap
   error:could not create the Java Virtual Machine.
   ERROR:A Fatal exception has occurred. Program would exit.
   Consult IDE Log for further details (Help | Show Log)

Just started using Androidstudio

When I look at the Internet, I always think of myself as a gradle.properties file.

Org.gradle.jvmargs=-xmx1024m-xx:maxpermsize=512m-xx:+heapdumponoutofmemoryerror-dfile.encoding=utf-8

-xmx1024m value is too small, and finally found that it is because my own computer memory is too small, only 2 G, and the Windows system about 1G, so have to

Change the value of-xmx1024m to-xmx512m.

The above is the Androidstudio error information collation, follow-up continue to supplement the relevant information, thank you for your support of this site!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.