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

后端 未结 2 453
感动是毒
感动是毒 2021-01-07 00:56

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

I got this issue after updating the android plugin.

Ple

相关标签:
2条回答
  • 2021-01-07 01:35

    Well I resolved the issue.

    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
    

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

    This is working for me.

    0 讨论(0)
  • 2021-01-07 01:37

    in this image we will show Gradle wrapper class its show about our current project Gradle version ;


    C:\Users*username*.gradle\wrapper\dists

    delete the dists folder

    download ant GitHub project and run it - in this case, the android studio will download necessary files. - and Gradle files too it about 135MB size. after successfully download run the GitHub project and after this run your local project. yeah, the android studio will run normally.........

    0 讨论(0)
提交回复
热议问题