Fix Android Studio appears failed to open zip file. Gradle ' s dependency cache may is corrupt problem

Source: Internet
Author: User

The problem is as follows:

Solve:

Modify the version of Gradle in Gradle-wrapper.properties, consistent with the Gradle version without error. You can do it.

For example, when I quote this mistake:

Distributionurl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

After modification:

Distributionurl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

Finally recompile the solution!

Problem Analysis: The problem occurs because the update Gradle version library download is incomplete resulting in the above problem.

Workaround:

1) re-download gradle, browser input https://services.gradle.org/distributions/gradle-4.4-all.zip (download other version only need to change the version number)

2) Enter the directory C:\USERS\JF\.GRADLE\WRAPPER\DISTS\GRADLE-4.4-ALL\9BR9XQ1TOCPIV8O6NJLYU5OP1 and replace it with the downloaded Gradle-4.4-all.zip

3) Open Android Studio, enter in Terminal: GRADLE-V, if not downloaded will automatically download, if already downloaded will automatically unzip

Fix Android Studio appears failed to open zip file. Gradle ' s dependency cache may is corrupt problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.