Error: Failed to open zip file. Solution: errorfailed

Source: Internet
Author: User

Error: Failed to open zip file. Solution: errorfailed

Error: Failed to open zip file. Gradle's dependency cache may be uploaded upt (this sometimes occurs after a network connection timeout .)

Solution:

Step 1: in Show log in Finder of AndroidStudio, view the log and search for the "https://services.gradle.org/distributions field in the document to locate the following statement:

Cocould not install Gradle distribution from 'https: // services.gradle.org/distributions/gradle-2.14.1-all.zip '.

The above versions may be different, and 2.14.1 may be another version.

Step 2: Download the corresponding gradle version.

For example, if my gradlecorresponds to 2.14.1, download gradle-2.14-all.zip.

Step 3: copy the downloaded zip file to the following directory.

/Users/your username/. gradle/wrapper/dists/gradle-2.14.1-all/55gk2rcmfc6p2dg9u9ohc3hw9 (here is a random garbled string )/

Step 4: restart AndroidStudio

Related Article

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.