android studio报初始化虚拟机时出错 没有储备足够的堆空间1572864kb对象
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=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8