Issue succinct--android: When you resolve a new project in studio, Building Gradle project info stays stuck

Source: Internet
Author: User

When Android studio imported the project, it was stuck in building Gradle project info, mainly because of the wall results. Gradle official Website Although can visit, but speed even snail are not catch ...

There are two main solutions, one is to download the Gradle offline package directly, and the other is to modify the Gradle version of the project gradle-wrapper.properties the existing version of the computer.

Offline Package Download Import method

View desired Gradle version: Open C:\Users\ user name \.gradle\wrapper\dists\gradle-x.xx-all\xxxxxxxxxxxx, If the gradle-xx-all.zip is incomplete (such as 0KB), then the download is unsuccessful and you need to download the offline package to place it in the directory. As shown below

Then, you need to download gradle-2.8-all.zip. Gradle each version of the offline package: http://download.csdn.net/album/detail/2265

After the import is complete, it is automatically decompressed after running as, as follows. Re-open the project to be able to ~ ~

Modify Gradle-wrapper.properties Mode

1. Find an as project you can run before
2. Open the project's/gradle/wrapper/gradle-wrapper.properties file
3, copy the last line distributionurl this whole line of content, for example: distributionurl=https\://services.gradle.org/distributions/ Gradle-2.8-all.zip, replace it with the Gradle-wrapper.properties file in the project you want to import.
4. Restart Android Studio to re-import the project.

Issue succinct--android: When you resolve a new project in studio, Building Gradle project info stays stuck

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.