android studio failed to open zip file,Android Studio出现Failed to open zip file问题的解决方法...
最近將AS升級(jí)至2.3之后,新建項(xiàng)目遇到了如下問題:Error:Failed to open zip file.Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)Re-download dependencies and sync project (requires network)Re-download dependencies and sync project (requires network)
網(wǎng)上說多點(diǎn)幾次Re-download就能解決問題,我這不行,改gradle-wrapper.properties中的distributionUrl依然無果之后,終于找到了解決辦法:
2.打開AS的根目錄,將zip解壓到Gradle文件夾里面(比如說我得是在 E:\Android\Android Studio\gradle)
解壓之后如上圖
3.打開AS,一次點(diǎn)擊File->Settings->Build, Exectution, Deployment->Gradle,在彈出窗口內(nèi)選擇Use local Gradle Distribution,路徑指向你新下載的Gradle 3.3文件夾,Apply.
4.Sync 以下項(xiàng)目,大功告成。
本人菜鳥一枚,初次發(fā)帖,多多指教,希望對(duì)猿友們有所幫助。祝好!
總結(jié)
以上是生活随笔為你收集整理的android studio failed to open zip file,Android Studio出现Failed to open zip file问题的解决方法...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: android 不可点击状态,Andro
- 下一篇: android 判断 飞行模式,如何在A