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

查看:30
本文介绍了错误:无法打开 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) 安卓插件版本: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天全站免登陆