编程知识 cdmana.com

Failed to open zip file. Gradle's dependency cache may be corrupt

andoroid studio Error running project :
Failed to open zip file.
Gradle’s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
The translation of this sentence means :
Unable to open zip file .Gradle The dependency cache for may be corrupted ( Sometimes it happens after the network connection times out )



Problems arise : Because Gradle The package is missing when downloading , Or network problems , The resulting build is problematic .
Attempt method :

1. Change it to something I've got gradle edition

2. Error deleting local gradle, Download your own copy from the Internet , Call again .

3. To configure Http proxy, Add domestic image address .
( It will download as slowly as a snail gradle.)

Here it is Gradle Plug in and its corresponding version , The date on which the table was obtained is :2020/12/22 The latest version

Tips:
The plug-in version is Project Under the Build.gradle Version of ;
Gradle The version is .gradle Next version

 Insert picture description here
I mainly carried out the above three methods . Tell me about my results , For me, , The result is - All useless !

I really want to make complaints about it !
To solve this problem , It really took me a day and a night without exaggeration , I've tried all of the above methods , All useless , I doubt life .
Finally, the Han Han who sent me the project finally had his brain , Run the code on your computer once , It was sent back to me , After this operation, there is nothing wrong with it , Finally, let me make a comparison , The entire project directory structure has changed . It took me a day and a night , In this way , I'm a little upset . Ah , The melancholy of female factory workers .
o sweet A scornful smile , speechless !


版权声明
本文为[osc_ nc5ghpm9]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201225093417650h.html

Scroll to Top