当前位置:   article > 正文

Android Studio Gradle构建很慢,下载依赖缓慢问题_androidstudio无法下载gradle依耐文件

androidstudio无法下载gradle依耐文件

在项目的 build.gradle或setting.gradle(Android Studio新老版本配置不同)中配置镜像源

阿里云:

maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/spring-plugin' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://jitpack.io' }

或

maven { url=uri("https://maven.aliyun.com/repository/gradle-plugin") }
maven { url=uri("https://maven.aliyun.com/repository/spring-plugin") }
maven { url=uri("https://maven.aliyun.com/repository/google") }
maven { url=uri("https://maven.aliyun.com/repository/central") }
maven { url=uri("https://maven.aliyun.com/repository/jcenter") }
maven { url=uri("https://maven.aliyun.com/repository/public") }
maven { url=uri("https://jitpack.io")}

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/479655
推荐阅读
相关标签
  

闽ICP备14008679号