buildscript { repositories { //jcenter() maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} } dependencies { classpath 'com.android.tools.build:gradle:2.2.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { //jcenter() maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} maven{url 'https://jitpack.io'} } }
jcenter()替换为maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}即可(刚开始做安卓,记录一下)