Jeff Lockhart
02/27/2021, 7:07 PMapi("org.koin:koin-core:3.0.0-alpha-4")
and when I add Ktor implementation("io.ktor:ktor-client-core:1.5.2")
to my build.gradle.kts, all the Koin org.koin.*
imports start showing errors “Unresolved reference” in Android Studio 4.2-beta5. This is in a shared KMM module. My app compiles and runs without error. But why the IDE errors?John Oberhauser
02/27/2021, 7:19 PMJeff Lockhart
02/27/2021, 7:57 PMVlad Ivanov
02/27/2021, 9:38 PMJeff Lockhart
02/27/2021, 10:30 PMNeal Sanche
02/28/2021, 2:00 AMKamilH
02/28/2021, 8:19 AMKodein
. All its imports are “Unresolved reference”, but app compiles and runs fine. I’m using it in simple server app (no multiplatform one). This makes me think that it must be some kind of general problem. I’m using IntelliJ IDEA 2020.3.2 (Community Edition)Jeff Lockhart
02/28/2021, 8:28 AM1:00 AM Incompatible Kotlin/Native libraries
There are 4 third-party libraries attached to the project that were compiled with an older Kotlin/Native compiler and cant be read in IDE:
Gradle: org.jetbrains.kotlinx:kotlinx-datetime-metadata:darwinMain:0.1.1
Gradle: org.jetbrains.kotlinx:kotlinx-datetime-metadata:nativeMain:0.1.1
Gradle: org.koin:koin-core-metadata:darwinMain:3.0.0-alpha-4
Gradle: org.koin:koin-core-metadata:nativeMain:3.0.0-alpha-4
Please edit Gradle buildfile(s) and specify library a version compatible with Kotlin/Native 1.4.31. Then re-import the project in IDE.
But it doesn’t always have all the same libraries in the list and the event doesn’t always show either. The fact that at least sometimes, both Koin and kotlinx-datetime show up here, leads me to believe this likely has something to do with the errors though. Maybe Android Studio just takes longer to silently index and process these libraries. Guess I’ll see if the errors go away again and hopefully new builds of Koin and kotlinx-datetime soon.