APP开发经验总结Android拾萃Android开发

JCenter 迁移指南

2021-05-04  本文已影响0人  Android轮子哥

本文章已授权郭霖微信公众号转载

影响范围

解决方案

buildscript {
    repositories {
        // 阿里云云效仓库:https://maven.aliyun.com/mvn/guide
        maven { url 'https://maven.aliyun.com/repository/public' }
        maven { url 'https://maven.aliyun.com/repository/google' }
        // 华为开源镜像:https://mirrors.huaweicloud.com
        maven { url 'https://repo.huaweicloud.com/repository/maven' }
        // JitPack 远程仓库:https://jitpack.io
        maven { url 'https://jitpack.io' }
        // MavenCentral 远程仓库:https://mvnrepository.com
        mavenCentral()
        google()
        jcenter()
    }
}

allprojects {
    repositories {
        maven { url 'https://maven.aliyun.com/repository/public' }
        maven { url 'https://maven.aliyun.com/repository/google' }
        maven { url 'https://repo.huaweicloud.com/repository/maven' }
        maven { url 'https://jitpack.io' }
        mavenCentral()
        google()
        jcenter()
    }
}

迁移方案

友盟迁移

Unable to resolve dependency for ':umeng@previewUnitTest/compileClasspath': Could not download common-2.2.5.jar (com.umeng.umsdk:common:2.2.5)
Unable to resolve dependency for ':umeng@preview/compileClasspath': Could not download analytics-8.1.6.jar (com.umeng.umsdk:analytics:8.1.6)

Android 技术讨论 Q 群:10047167

上一篇下一篇

猜你喜欢

热点阅读