Jeff Lockhart02/27/2021, 7:07 PM
and when I add Ktor
to my build.gradle.kts, all the 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 Oberhauser02/27/2021, 7:19 PM
Jeff Lockhart02/27/2021, 7:57 PM
Vlad Ivanov02/27/2021, 9:38 PM
Jeff Lockhart02/27/2021, 10:30 PM
Neal Sanche02/28/2021, 2:00 AM
KamilH02/28/2021, 8:19 AM
. 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 Lockhart02/28/2021, 8:28 AM
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.
1: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.