Error:Unable to start the daemon process: could not reserve enough space for object heap.

来源:互联网 发布:阿里巴巴数据库在哪 编辑:程序博客网 时间:2024/05/27 14:13

Android Studio启动的时候碰到的一个问题,显示以下错误信息

Error:Unable to start the daemon process: could not reserve enough space for object heap.

Please assign more memory to Gradle in the project's gradle.properties file.

For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB:

Read Gradle's configuration guide

Read about Java's heap size

解决方法:在你的项目gradle.properties最后一行添加这一句

org.gradle.jvmargs=-Xmx512m -XX\:MaxPermSize\=512m
再try一下,大功告成。


0 0