Error occurred during initialization of VM

新安装的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 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

 

解决方法:
重新设置一下JDK路径 File->ProjectStruceure->SDK Location 去掉Use embedded JDK(recommended)的勾选,选择jdk的安装目录

posted on 2017-06-20 17:12  Jason-zhang.cn  阅读(490)  评论(0编辑  收藏  举报

导航