【错误记录】jcenter 移除问题 ( Please remove usages of `jcenter()` Maven repository from your build scripts )

报错信息:

Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories.
This repository is deprecated and it will be shut down in the future.
See http://developer.android.com/r/tools/jcenter-end-of-service for more information.
Currently detected usages in: root project 'My Application', project ':app'
Affected Modules: app

上述报错只是进行提示,jcenter 马上要停止维护并关闭,目前只能使用

    repositories {
        google()
        mavenCentral()
    }

这两个 Maven 仓库 ;

将 build.gradle 中的 jcenter() 注释掉 , 上述报错消失 ;

移除 jcenter 会造成相关依赖库无法下载 , 可能需要手动添加依赖 ;

posted @ 2022-10-18 16:02  双城孙宇  阅读(184)  评论(0)    收藏  举报