AS升级2.3 错误:Re-download dependencies and sync projec

    xiaoxiao2021-03-25  110

    错误:   新建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 替换, 从新编译

     

    转载请注明原文地址: https://ju.6miu.com/read-24301.html

    最新回复(0)