解决Gradle‘s dependency cache may be corrupt (this sometimes occurs after a network connection timeout

class org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to class org.apache.xerces.xni.parser.XMLParserConfiguration

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

网上看了很多教程,最后在stackoverflow找到更为快捷的办法

参考链接:https://stackoverflow.com/questions/38442901/gradles-dependency-cache-may-be-corrupt-this-sometimes-occurs-after-a-network/47236781#47236781
 

1.查看androidstudio

解决Gradle‘s dependency cache may be corrupt (this sometimes occurs after a network connection timeout_第1张图片

2.mac 系统进入

  cd .gradle

3.删除所有7.5相关文件,下图文件夹可参考

解决Gradle‘s dependency cache may be corrupt (this sometimes occurs after a network connection timeout_第2张图片

4.重新编写下载最新gradle

5.运行app

你可能感兴趣的:(android,android-studio)