错误信息:
在引入依赖时报错:Failed to resolve: xxx.xxxx:1.1.0
解决方案:
需要修改maven库的代理,否则就需要翻墙编译
新的AndroidStudio版本比较坑,修改代理的位置发生了变化:
最新变化:
修改settings.gradle文件(注意:不是以前的build.gradle)
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven { allowInsecureProtocol = true
url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { allowInsecureProtocol = true
url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { allowInsecu