修改build.gradle:
buildscript { repositories { maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} } } allprojects { repositories { maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} } }
需要注意的一点是子项目下的build.gradle需要一并修改: