Android Studio创建工程时一直卡在下载Gradle

时间:2021-11-14 16:40:17

Android Studio创建工程时一直卡在下载Gradle

一直提示这个进度条,查了不少资料,有的说FQ,有的说下载gradle后运行下bin里面的批处理,再在环境变量里Path中加入路径,我都试了,都不和。。。

按理说FQ了可以下载了吧,但是半天没下载完,一共也就50M左右。。。。。下了半天也没动静。。

最后看了一老外的帖子:

Yes, There is.

  1. Create a new project and you should Shutdown The Android Studio Application.(Because it takes a long time for you).
  2. Goto C:\Users\{Logged in User}\.gradle folder
  3. There is a folder there that show you which version of gradle Android Studio requires (e.g. gradle-1.8-bin)
  4. Download this version from internet (e.g. gradle-1.8-bin.zip).
  5. Goto C:\Users\{Logged in User}\.gradle\wrapper\dists\gradle-1.8-bin
  6. There is a folder here that its name is like a GUID.
  7. You should just copy the zip file that you've already downloaded from internet into this folder.
  8. Execute Android Studio and create a new project.

就是把下载好的gradle包放在C:\Users\{Logged in User}\.gradle\wrapper\dists\  如:C:\Users\admin\.gradle\wrapper\dists\gradle-1.9-all\3jdgemv0iv8uqohg3kcp2o88r1

重新打开AndroidStudio Create application..

ok