AndroidStudio usage exceptions

Source: Internet
Author: User

AndroidStudio usage exceptions

Exception information:

 Gradle sync failed: 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 https://docs.gradle.org/2.10/userguide/gradle_daemon.html         Please read the following process output to find out more:         -----------------------         Error occurred during initialization of VM         Could not reserve enough space for object heap         Error: Could not create the Java Virtual Machine.         Error: A fatal exception has occurred. Program will exit.         Consult IDE log for more details (Help | Show Log)

Android Studio

I always thought it was my gradle. properties file.

Org. gradle. jvmargs =-Xmx1024m-XX: MaxPermSize = 512 m-XX: + HeapDumpOnOutOfMemoryError-Dfile. encoding = UTF-8

-The value of Xmx1024m is too small. It turns out that my computer's memory is too small and only 2 GB, while windows accounts for about 1 GB.

-Change the value of Xmx1024m to-Xmx512m.

 

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.