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文件。