Solve the build-gradle problem every time Android studio opens a new project

When working on Android projects, one of the problems often encountered is to open a new project and download gradle in various ways to solve the problem of Google library compilation and loading.

Modify the following statement in the build.gradle file:

maven {url'https://maven.aliyun.com/repository/gradle-plugin'} //gradle domestic mirror warehouse
maven { url'https://maven.aliyun.com/repository/google '} //google domestic Mirror warehouse
maven {url'https://maven.aliyun.com/repository/jcenter'} //jcenter domestic mirror warehouse
Finally, rebuild, and you can start Android operations happily!

Guess you like

Origin blog.csdn.net/qq_26280383/article/details/114985166