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

使用Android Studio时的一个问题

2015-09-23 20:05 465 查看
前些天打开Android Studio准备写一个程序的时候,它出现了一个问题,问题描述如下:

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/2.2.1/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.


上网百度,出现的解决方法大多数是针对Eclipse或者tomcat的设置问题,好不容易找到了本问题的解决方案,

特作此记录。具体如下:

定位到目录 C:\Users\<username>\.gradle

创建文件gradle.properties

内容:org.gradle.jvmargs=-Xmx512m

重启你的Android Studio项目,搞定。
希望能帮到大家,谢谢!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: