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