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}\.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

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM