打开项目根目录下的 build.gradle(Project:项目名称一级的gradle),如下所示添加阿里 maven 库地址: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { // 添加阿里云 maven 地址 maven { url 'http://maven.aliyun.com/