一直提示這個進度條,查了不少資料,有的說翻牆,有的說下載gradle后運行下bin里面的批處理,再在環境變量里Path中加入路徑,我都試了,都不和。。。
按理說翻牆了可以下載了吧,但是半天沒下載完,一共也就50M左右。。。。。下了半天也沒動靜。。
最后看了一老外的帖子:
Yes, There is.
- Create a new project and you should Shutdown The Android Studio Application.(Because it takes a long time for you).
- Goto C:\Users\{Logged in User}\.gradle folder
- There is a folder there that show you which version of gradle Android Studio requires (e.g. gradle-1.8-bin)
- Download this version from internet (e.g. gradle-1.8-bin.zip).
- Goto C:\Users\{Logged in User}\.gradle\wrapper\dists\gradle-1.8-bin
- There is a folder here that its name is like a GUID.
- You should just copy the zip file that you've already downloaded from internet into this folder.
- 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