AndroidStudio3.1Gradle的Bug
今天安装AS3.1,配置好,出现这个问题:
Gradle sync failed: 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/4.4/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 2097152KB object heap
Consult IDE log for more details (Help | Show Log) (140ms)
我们把默认的改为1024就可以了,有的是512