错误:无法打开zip文件. Gradle依赖项缓存可能已损坏(有时会在网络连接超时后发生.) [英] Error:Failed to open zip file. Gradle dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

查看:203
本文介绍了错误:无法打开zip文件. Gradle依赖项缓存可能已损坏(有时会在网络连接超时后发生.)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:无法打开zip文件. Gradle依赖项缓存可能已损坏(有时会在网络连接超时后发生.)

Error:Failed to open zip file. Gradle dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.parse.bolts:bolts-android:1.+'
    compile 'com.parse:parse-android:1.+'
    compile 'com.android.support:appcompat-v7:23.2.0'
    compile 'com.android.support:recyclerview-v7:23.2.0'
    compile 'com.facebook.android:facebook-android-sdk:4.0.0'
    compile 'com.android.support:design:23.2.0'
    compile 'com.android.support:support-v4:23.2.0'
}

推荐答案

当我将Android Studio从2.1更新到2.2.3时,我遇到了同样的问题.经过一段时间的挣扎,转到了项目->右键单击->打开模块设置->项目

I faced the same issue when I updated my android studio to 2.2.3 from 2.1. After a while of struggling, went project->right click -> open module settings->project

1)摇篮:2.14.1
2)Android插件版本:2.2.3
3)Android插件存储库:jcenter
4)默认库:jcenter

1) Gradle : 2.14.1
2) Android plugin version : 2.2.3
3) Android plugin repository : jcenter
4) Default library repository : jcenter

这篇关于错误:无法打开zip文件. Gradle依赖项缓存可能已损坏(有时会在网络连接超时后发生.)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆