android studio给项目添加依赖获取失败

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/soha_dong/article/details/83213924

有时候我们通过  

implementation 'xxxxxxxx'

给项目添加依赖的时候获取不到此依赖的内容  可以尝试在project的build.gradle中添加这么一行代码

maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}

注意防到jcenter()的上面

猜你喜欢

转载自blog.csdn.net/soha_dong/article/details/83213924