赞
踩
适用于因某些原因无法访问google等仓库无法编译。
阿里云仓库官网(我是网址)
选择需要的仓库地址
然后将需要的仓库写入项目根目录的build.gradle中。
示例:
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.3.41' repositories { // google() // jcenter() maven { url 'https://maven.aliyun.com/repository/public' }//jcenter maven { url 'https://maven.aliyun.com/repository/google' }//google } dependencies { classpath 'com.android.tools.build:gradle:4.0.1' // classpath 'com.loveota.plugins:lbplugin:latest.release' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { // google() // jcenter() maven { url 'https://maven.aliyun.com/repository/public' }//jcenter maven { url 'https://maven.aliyun.com/repository/google' }//google } }
Over
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。