相关疑难解决方法(0)

错误:无法打开zip文件.Gradle的依赖缓存可能已损坏

我更新了android studio 2.3并且有一个bug,gradle没有构建,它一直给我所有项目的错误.

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>
Run Code Online (Sandbox Code Playgroud)

我已经搜索过一个解决方案,但还没找到.我试过了:

Invalidate Caches / Restart...
Run Code Online (Sandbox Code Playgroud)

但一切都没有改变.

error-handling sdk android gradle android-studio

80
推荐指数
8
解决办法
14万
查看次数

Gradle的依赖性缓存可能已损坏(这有时会在网络连接超时后发生.)

我遇到了这种错误,如何修复它.

Error:Unable to load class 'org.gradle.tooling.internal.protocol.test.InternalTestExecutionConnection'.
Possible causes for this unexpected error Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle …
Run Code Online (Sandbox Code Playgroud)

android gradle gradle-plugin

71
推荐指数
8
解决办法
10万
查看次数

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

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

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'
}
Run Code Online (Sandbox Code Playgroud)

android android-studio android-gradle-plugin

1
推荐指数
2
解决办法
2万
查看次数