Android Studio报错:Re-download dependencies and sync project (requires network)

Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network) Re-download dependencies and sync project (requires network)

解决方法:

1,

wangpan@wangpan-OptiPlex-7050:/media/hdd1/work/git/ModuleBuild-master$ which gradle 
/usr/local/gradle-4.4.1/bin/gradle

2,

File->Project Structure...->Project->Gradle version设置为4.4.1  和上面gradle的version一致。

3,

Build->Rebuild project

猜你喜欢

转载自blog.csdn.net/wangpanbaoding/article/details/81909774
今日推荐