1.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 http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
最近打开安卓工程莫名其妙的突然出现上述的错误,半天也没解决,网上的各种 修改gradle.properties 文件,修改运行空间 的改法基本是狗屁不通,后面仔细分析了下,在网上找了一个解决问题的办法:
新建系统变量
变量名 _JAVA_OPTIONS
变量值 -Djava.net.preferIPv4Stack=true
注意,添加环境变量后,需要重启电脑后方可生效。