"Problem" Androidstudio Import project has been stuck in building gradle the fastest solution for project Infod

Source: Internet
Author: User

Reason

Androidstudio The import project has been stuck in building Gradle project info because the Gradle version used by the imported project is inconsistent with the Gradle version already owned by the local Causes the Gradle version required for the project to be downloaded automatically when the project is imported as. Because the download speed is too slow, it will always show the download progress bar (almost stuck in the state), if the download is complete, it can be imported normally (if it is really possible to download the completed).

Workaround One

The agent is downloaded to the corresponding Gradle version and then placed locally.

Solution two (fastest)

Modify the gradle-wrapper.properties so that it uses the Gradle version that is already owned locally.
Specific practices:
1. Locate an as project that can run locally (assuming project a), open the project under Gradle/wrapper/gradle-wrapper.properties. Copy Distributionurl,
Like mine is Distributionurl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip.
2. Open the gradle/wrapper/gradle-wrapper.properties of the item you want to import, replacing the value of the distributionurl above. You can open it.

"Problem" Androidstudio Import project has been stuck in building gradle the fastest solution for project Infod

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.