创建 Gradle 耗时

AndroidStudio 每次创建新的项目都要新建Gradle ,即便进去了还是点击运行还是不行。

解决:

一:在你的Androidstudio安装目录下(E:\AndroidStudio\androidstudio\plugins\android\lib\templates\gradle\wrapper\gradle\wrapper)(我的是这个)的gradle-wrapper.properties文件找不到就全电脑搜索gradle-wrapper.properties文件,文本打开可以看到最后一行可以看到https://services.gradle.org/distributions/gradle-2.1-all.zip


二:http://services.gradle.org/distributions/界面去下载一个all(高版本最好)下载好了就解压,如下图:

解压成这样 ,把zip也放进去,记住这个地址,C:\Users\BAO\.gradle\wrapper\dists\gradle-3.3-all/gradle-3.3-all.zip

三:把这个地址(C:\Users\BAO\.gradle\wrapper\dists\gradle-3.3-all/gradle-3.3-all.zip)和上文中https://services.gradle.org/distributions/gradle-2.1-all.zip替换掉就OK;