When I publish a library it seems that I can not u...
# multiplatform
t
When I publish a library it seems that I can not use the library code in commonMain, but the library is written in commonMain, does anyone have the same issue?
a
I don't have any issues, can you paste the gradle scripts of your library and consumer so that I (and others) can help spot your challenge?
t
Is on Github https://github.com/Tlaster/PreCompose/blob/master/precompose/build.gradle.kts, I have this issue after upgrading to Kotlin 1.6.21.
a
precompose gradle script looks ok. how is it being consumed?
t
I'm using it with
api("moe.tlaster:precompose:${Versions.precompose}")
in commonMain's dependencies, but the intellij can not resolve the API in common, but the compiling seems ok, by adding
compileOnly("moe.tlaster:precompose-jvm:${Versions.precompose}")
the intellij can resolve the API
by adding ios support to the library resolve the issue, now intellij can resolve the API without problem, but I have not idea why 🤔
e
IDE bug, https://youtrack.jetbrains.com/issue/KTIJ-21889 the build should work fine even if the IDE doesn't
🙏 1