(已解决)Android Studio JVM报错解决方案

来源:互联网 发布:苏州爱知电机有限公司 编辑:程序博客网 时间:2024/05/02 02:00

异常:

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

解决方案:

在gradle.properties中添加或者修改为:

org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m
0 0
原创粉丝点击