您的位置:首页 > 移动开发 > Android开发

android studio 提示 “Gradle project sync failed”

2016-05-22 21:57 731 查看
Message Gradle Sync:

Failed to sync Gradle project 'Sunshine'

Error:Unable to start the daemon process: could not reserve enough space for object heap.

Please assign more memory to Gradle in the project's gradle.properties file.

For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB:

org.gradle.jvmargs=-Xmx1024m

Read Gradle's configuration guide

Read about Java's heap size

Event Log:

 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)

打开Showlog in Explorer :

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android studio java jdk sdk