报错信息:
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 会造成相关依赖库无法下载 , 可能需要手动添加依赖 ;
标签:usages,repository,jcenter,Maven,build,移除,your From: https://www.cnblogs.com/sunyu1996/p/16802910.html