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

enter image description here

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

按理说翻墙了可以下载了吧,但是半天没下载完,一共也就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}.gradlewrapperdistsgradle-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}.gradlewrapperdists  如:C:Usersadmin.gradlewrapperdistsgradle-1.9-all3jdgemv0iv8uqohg3kcp2o88r1

重新打开AndroidStudio Create application..

ok

原文地址:https://www.cnblogs.com/guo0/p/3485284.html