对于版本4.10.1,Gradle的依赖项缓存可能已损坏(这有时会在网络连接超时之后发生.) [英] Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) for Version 4.10.1

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

问题描述

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

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

更新android插件后出现此问题.

I got this issue after updating the android plugin.

请帮助.

我试图将gradle版本更改为4.6(distributionUrl = https://services.gradle.org/distributions/gradle-4.6-all.zip)及其工作方式,但我想使用推荐的gradle-4.10 .1(distributionUrl = https://services.gradle.org/distributions/gradle-4.10.1-all.zip)版本.

I tried to change the gradle version to 4.6(distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip) and its working too, but I want to use the recommended gradle-4.10.1 (distributionUrl=https://services.gradle.org/distributions/gradle-4.10.1-all.zip) version.

推荐答案

好,我解决了这个问题.

Well I resolved the issue.

删除〜/.gradle/wrapper/dists/gradle-4.10.1-all文件夹,然后在android studio中重建项目.

Remove the ~/.gradle/wrapper/dists/gradle-4.10.1-all folder and then rebuild the project in android studio.

rm -rf ~/.gradle/wrapper/dists/gradle-4.10.1-all

这将删除已损坏或部分下载的gradle-4.10.1-all.

This removes the corrupted or partially downloaded gradle-4.10.1-all.

这对我有用.

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

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