Android Studio Offline Gradle

Source: Internet
Author: User

From Eclipse to Android studio feel really niaoqianghuanpao ah, efficiency greatly improved, but every time the Android studio upgrade and then offline Gradle error, annoying ah, so carefully studied the next Gradle offline use, summed up a few, Keep a record before you forget.

1, Android Studio upgrade will generally upgrade gradle, and then there will be a downloaded Gradle folder in the installation directory as, this directory can be directly referenced

2, the project depends on the Gradle version number is generally the same as the version number, or you can go to the bottom of the directory to view the currently supported version number:

Android Studio\gradle\m2repository\com\android\tools\build\gradle

3, the corresponding Gradle usage policy can be configured in the project Settings\gradle

Use default Gradle wrapper: Your personal understanding should be using the defaults gradle configuration

Use local Gradle Distribution: Personal understanding is using a custom Gradle configuration

Offline work: Offline use of Gradle, under User\.gradle\wrapper\dists\ to create a corresponding Gradle version of the cache folder, and then inside is the Gradle cache

Feel offline work is with the default gradle together, check the use of the local gradle, away from the offline did not find what difference, do not know if anyone has studied it

Android Studio Offline Gradle

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.