新建工程后会出现以下错误
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:
-----------------------
在网上找了很多解决方法,其中最多的一类说是更改 gradle.properties 代码为
org.gradle.jvmargs=-Xmx512m
尝试这种方法未果后,找到了这种解决办法
如图所示 新建环境变量:JAVA_TOOL_OPTIONS 变量值:-Djava.net.preferIPv4Stack=true