当我们的studio用的3.0以上的时候,我们新建一个项目,app gradle中是
repositories {
google()
jcenter()
}
默认使用的 google与jcenter库,因为导致有时候下载库下不下来的情况,这时候我们需要添加
repositories {
maven{ url'http://maven.aliyun.com/nexus/content/groups/public/' }
maven{ url'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
google()
jcenter()
}
俩个maven就OK了。
本文介绍当使用Android Studio 3.0及以上版本时,如何通过添加阿里云Maven仓库来解决项目依赖库下载失败的问题,确保开发环境的稳定性和效率。
2511

被折叠的 条评论
为什么被折叠?



