Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 777
Aydinozkan Avatar asked May 11 '21 11:05

Aydinozkan


2 Answers

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#maven-central

like image 151
Aydinozkan Avatar answered Sep 19 '22 02:09

Aydinozkan


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

like image 28
nicolas asinovich Avatar answered Sep 18 '22 02:09

nicolas asinovich