码迷,mamicode.com
首页 > 其他好文 > 详细

导入项目,出现to start the daemon process的问题

时间:2016-04-16 12:20:28      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:

将一个sdk使用demo导入到AS出现如下问题:

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 occurred. Program will exit.


解决办法:
找到该项目下面的 gradle.properties文件 将里面的对应的行,改为:

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

导入项目,出现to start the daemon process的问题

标签:

原文地址:http://www.cnblogs.com/android-er/p/5398015.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!