安卓开发中的mave镜像设置

关山初度尘未洗,策马扬鞭再奋蹄!这篇文章主要讲述安卓开发中的mave镜像设置相关的知识,希望能为你提供帮助。
【安卓开发中的mave镜像设置】抵达项目根部的build.gradle文件中,将下方有关maven添加进去即可:

buildscript { repositories { maven { url ‘http://maven.aliyun.com/nexus/content/groups/public/‘ } maven { url ‘http://maven.aliyun.com/nexus/content/repositories/jcenter‘ } maven { url ‘http://maven.aliyun.com/nexus/content/repositories/google‘ } maven { url ‘http://maven.aliyun.com/nexus/content/repositories/gradle-plugin‘ } google() jcenter() } dependencies { classpath ‘com.android.tools.build:gradle:3.2.1‘ } }allprojects { repositories { maven { url ‘http://maven.aliyun.com/nexus/content/groups/public/‘ } maven { url ‘http://maven.aliyun.com/nexus/content/repositories/jcenter‘ } maven { url ‘http://maven.aliyun.com/nexus/content/repositories/google‘ } maven { url ‘http://maven.aliyun.com/nexus/content/repositories/gradle-plugin‘ } google() jcenter() } }


    推荐阅读