解决android studio引用远程仓库下载慢(JCenter下载慢) Could not download kotlin-gradle-plugin.jar 问题

编程入门 行业动态 更新时间:2024-10-26 08:31:02

第一种方法
使用开源中国的maven库
阿里云的(速度飞快):http://maven.aliyun/nexus/content/groups/public/

替换项目根目录下build.gradle中的

  repositories {
          jcenter()
    }

为:

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


第二种方法
修改https为 http协议下载http://jcenter/bintray/替换项目根目录下build.gradle中的

 repositories {
          jcenter()
    }

为:

    repositories {
       jcenter(){ url 'http://jcenter.bintray/'}
    }

解决Android studio遇见Could not find common.jar (android.arch.core:common:1.0.0).错误

不知道怎么回事就发生的错误,翻墙找到的解决方法,如下:
Error:Could not find common.jar (android.arch.core:common:1.0.0).
Searched in the following locations:
    https://jcenter.bintray/android/arch/core/common/1.0.0/common-1.0.0.jar

修改的位置:Gradle Scripts --->build.gradle(Project:项目名)--->allprojects{}里面;
解决方法:
    repositories {
        maven{url"https://maven.google"}
        jcenter()
        maven{url 'https://jitpack.io'}
    }

更多推荐

解决android studio引用远程仓库下载慢(JCenter下载慢) Could not download kotlin-gradle-plugin.ja

本文发布于:2023-06-13 10:14:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1380634.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:仓库   JCenter   android   studio   download

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!