Android Studio accelerate gradle sync speed

When using Android Studio, the new project after download gradle very slow, sometimes to more than 40 minutes, it can be modified to speed up by domestic sources.
By modifying build.gradle file to do. In the root directory of your Android Studio installed, this file is specific path: Android Studio \ plugins \ Android \ lib \ Templates \ Gradle-the Projects \ NewAndroidProject \ root
as shown:
Here Insert Picture Description
I have here is installed in a directory Android.
Wherein the Google () and jcenter () Replace
Maven {URL 'https://maven.aliyun.com/repository/public/'}
Maven {URL 'https://maven.aliyun.com/repository/google/ '}
I then replaced with new construction, download gradle when the general need only a three to four minutes.

Published 59 original articles · won praise 17 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_40456669/article/details/104269398