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

android studio Error:Unable to start the daemon process

2016-11-30 09:20 471 查看
studio打开昨天都好好的一个小demo,报这个错

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 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 1572864KB object heap


在网上找到了解决办法:

1 定位到目录 C:\Users\Administrator.gradle

2 创建文件gradle.properties

内容:org.gradle.jvmargs=-Xmx512m

3 重启你的Android Studio项目

原来android studio是通过gradle对项目配置的,而系统中没有对android studio 的默认配置,就像Eclipse中的eclipse.ini文件。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: