1. 程式人生 > >AS升級2.3 錯誤:Re-download dependencies and sync projec

AS升級2.3 錯誤:Re-download dependencies and sync projec

錯誤:   新建AS 2.3

Error:Failed to open zip file.

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a>

<a href="syncProject">Re-download dependencies and sync project (requires network)</a>

---->>>>

Gradle sync failed: Cause: error in opening zip file
Consult IDE log for more details (Help | Show Log)

----------------

解決辦法:1 開啟AS  - gradle  -gradle-wrapper.properties

                     distributUrl = .....    gradle-3.3-all.zip

                    2 開啟C盤 

                          C:\Users\CYH\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9    ;發現zip檔案下載失敗。

                   3  去 http://services.gradle.org/distributions下載

                   4 替換, 從新編譯