AndroidStudio项目的坑
ChrisXie Lv5

报错Please remove usages of jcenter() Maven repository from your build scripts and migrate your build to other Maven repositories.

1
2
3
4
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: Gradle Settings

查了网上说是jcenter()跑路了,所以不支持了;需要改用mavenCentral
所以在切换至Project找到build.gradle文件修改为下方,重新编译一下就OK了。

1
2
3
4
5
6
7
8
9
10
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://kotlin.bintray.com/kotlinx' }
// jcenter() // Warning: this repository is going to shut down soon

}
}

 评论
相关文章
标签云 更多