1.Error:Android SDK is not specified for module Project_Android
2.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/2.8/userguide/gradle_daemon.html
Please read the following process output to find out more:
解决办法,根据提示,在此文件下加一行代码(不要#号):
org.gradle.jvmargs=-Xmx1024m
然后Try Again
3.gradle的安装
在终端下输入gradlew -v
E:\AS_workspace\Test2>gradlew -v
Downloading https://services.gradle.org/distributions/gradle-2.8-all.zip
..................................................................................................................................................此处省略若干省略号
Unzipping C:\Users\Administrator\.gradle\wrapper\dists\gradle-2.8-all\ah86jmo43de9lfa8x
g9ux3c4h\gradle-2.8-all.zip to C:\Users\Administrator\.gradle\wrapper\dists\gradle-2.8-
all\ah86jmo43de9lfa8xg9ux3c4h
------------------------------------------------------------
Gradle 2.8
------------------------------------------------------------
Build time: 2015-10-20 03:46:36 UTC
Build number: none
Revision: b463d7980c40d44c4657dc80025275b84a29e31f
Groovy: 2.4.4
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.7.0_15 (Oracle Corporation 23.7-b01)
OS: Windows 8 6.2 x86
第一次因为没有gradle,所以需要下载,第二次再输入就ok了:
E:\AS_workspace\Test2>gradlew -v
------------------------------------------------------------
Gradle 2.8
------------------------------------------------------------
Build time: 2015-10-20 03:46:36 UTC
Build number: none
Revision: b463d7980c40d44c4657dc80025275b84a29e31f
Groovy: 2.4.4
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.7.0_15 (Oracle Corporation 23.7-b01)
OS: Windows 8 6.2 x86
下载好了之后可以在C盘:
C:\Users\Administrator\.gradle\wrapper\dists\gradle-2.8-all\ah86jmo43de9lfa8xg9ux3c4h
下面看到: