找不到 org.koin:koin-core:2.2.2

问题描述

我最近从项目级构建 Gradle 中删除了 jcenter() 存储库。

从那时起 Koin(版本:2.2.2)开始给我下面的编译时错误:

Could not find org.koin:koin-core:2.2.2

解决方法

添加 mavenCentral 存储库而不是 jcenter 并将 Koin 的版本更新为 3.0.1 解决了问题。

不要忘记将依赖项也从 org.koin 更新为 io.insert-koin

https://github.com/InsertKoinIO/koin#maven-central

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...