Aydinozkan
Aydinozkan

Reputation: 2628

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

I have recently removed jcenter() repository from the project-level build Gradle.

Since then Koin (version: 2.2.2) started giving me the compile-time error below:

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

Upvotes: 14

Views: 22015

Answers (2)

Aydinozkan
Aydinozkan

Reputation: 2628

Adding mavenCentral repository instead of jcenter and updating the version of Koin to 3.0.1 solved the issue.

Do not forget to update the dependencies from org.koin to io.insert-koin as well.

https://github.com/InsertKoinIO/koin/tree/67b3505dcbb6480bb68e4f7fb4ddd7c262cf169e?tab=readme-ov-file#maven-central

Upvotes: 19

nicolas asinovich
nicolas asinovich

Reputation: 3511

Now use implementation "io.insert-koin:koin-core:3.0.1" and remove jcenter from project build.gradle

Upvotes: 11

Related Questions