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

Android Studio Gradle project sync failed,Gradle sync failed: Unable to start the daemon process.

2017-06-22 20:26 519 查看
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 http://gradle.org/docs/1.10/userguide/gradle_daemon.html Please read below 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 occu
4000
rred. Program will exit.
/*****//*/*//*//*/*//*/**/*/*/**//*/*/*/*/*/*/*//**/**/*/*/******/****/*/****//**/*/*/
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/3.3/userguide/gradle_daemon.html Please read the following process output to find out more:-----------------------Error occurred during initialization of VMCould not reserve enough space for 1572864KB object heapConsult IDE log for more details (Help | Show Log)
解决方法	:修改项目gradle.properties文件,添加下面一行代码:
org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m
原创网址: http://stackoverflow.com/questions/23663299/ href="http://lib.csdn.net/base/15" target=_blank>Android-studio-gradle-project-sync-failed

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