Hi, I’m migrating multiplatform project to 1.4 ver...
# multiplatform
h
Hi, I’m migrating multiplatform project to 1.4 version and when sync project with gradle file on Android Studio 4.2 Canary 8 the attached
Gradle import errors
shows. syncing is success and build also success. but, Android Studio doesn’t recognize classes or functions so, I assume that the
Gradle import errors
may be related to the problem Is there any thing I can try? Kindly let me know if further information is required. my project contains the below • android Jetpack compose • multiplatform module use multipltform library, • Ktor, Ktor client • Sqldelight • coroutine mt
classes not recognized like the screenshot
There is multiplatform module which depends on multiplatform library. multiplatform library contains dependency like attatched snippet (used
api
configuration) and multiplatform module doesn’t contains
kotlin-coroutines-core
as library already contains. so, when I added
kotlin-coroutines-core
on multiplatform module, it’s working fine to recognize classes but, I think it should work when dependency exist in the multiplatform library, even if the dependency doesn’t exist in the multiplatform module it’s not related to
kotlin-coroutines-core
, when I tested, other dependencies also have some problem. it seems related to
api
configuration
j
I migrated too and now all the code in my
build.gradle.kts
files are highlighted in red although things seem to work correctly :/
😥 1
k
Try to add kotlinx-coroutines-core:1.3.9*-native-mt* to dependencies.
h
Thanks for suggestion. I’m using native-mt. but still same issue. for workaround, I copied same dependency from library to module.