解决 Android 项目下载依赖缺失导致的问题
在项目根目录下的 build.gradle 文件中增加下面的代码:
buildscript {repositories {...maven {url "https://maven.aliyun.com/repository/jcenter"}maven {url "https://maven.aliyun.com/repository/central"}maven {url "https://jitpack.io"}...}
}allprojects {repositories {...maven {url "https://maven.aliyun.com/repository/jcenter"}maven {url "https://maven.aliyun.com/repository/central"}maven {url "https://jitpack.io"}...}
}
原始资源参见这里:https://developer.aliyun.com/mvn/view