在Android 4.2中有一个警告:

buildscript {
ext.kotlin_version = '1.5.0'
repositories {
google()
//jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
//jcenter()
mavenCentral()
}
}如果我删除了jcenter(),那么它就找不到我的应用程序项目的一些依赖项:
> Could not find org.koin:koin-core:2.0.1.
Required by:
project :app
> Could not find org.koin:koin-androidx-scope:2.0.1.
Required by:
project :app
> Could not find org.koin:koin-androidx-viewmodel:2.0.1.
Required by:
project :app
> Could not find com.google.ads.mediation:chartboost:8.1.0.0.
Required by:
project :app代替jcenter(),我添加了mavenCentral()
发布于 2021-05-07 11:44:00
对于koin,将组id从org.koin更改为io.insert-koin -后者发布在maven central上。
对于chartboost,可以使用以下回购方法:
maven {
url "https://dl.bintray.com/google/mobile-ads-adapters-android/"
}还请注意,有较新的版本,如koin 2.2.2 / 3.0.1和chartboost 8.2.0.0。旧版本可能不会在非jcenter repos中重新发布。
mvnrepository储存库是一个很好的定位包的服务。
发布于 2021-05-06 17:50:09
将mavenCentral()移动到jcenter()上方。
在你的项目上做一个干净的/建立的。
注释掉jcenter()
通过将mavenCentral()移动到jcenter()之上,mavenCentral()现在成为所有非Google工件的主要存储库。通过进行清理和构建,所有工件现在都被移动到mavenCentral()中。
我得查一下然后试一试。我从所有该死的突破后,我删除了jcenter(),到能够建立我的最后一个项目的学校。
发布于 2021-06-08 05:50:22
只要注释掉jcenter()就会有帮助,mavencentral()已经在jcenter之上了。
https://stackoverflow.com/questions/67418153
复制相似问题