```import kotlinx.datetime.toJavaLocalDate import ...
# android
e
Copy code
import kotlinx.datetime.toJavaLocalDate
import kotlinx.datetime.toJavaLocalTime
I am getting unresolved error when I remove these libraries from gradle although they are not related, I tried to invalidate cache and restart but still the same issue.
Copy code
implementation("com.github.thellmund.Android-Week-View:core:5.2.4")
implementation("com.github.thellmund.Android-Week-View:jsr310:5.2.4")
implementation("com.github.thellmund.Android-Week-View:emoji:5.2.4")
implementation("com.himanshoe:kalendar-endlos:1.0.0")
c
But you added
kotlinx-datetime
yourself!? https://github.com/Kotlin/kotlinx-datetime
e
it is beacuse of this library implementation("com.himanshoekalendar endlos1.0.0")
I declared my dependency in the shared build.gradle since it is a kmm project
c
If it’s in the shared module and you want it to be accessible from other modules you have to use
api
instead of
implemenation
in the dependencies section.
🙌 1
1
e
thanks it worked
but could you give me an explanation plz
c
Dependencies that you resolve as
implementation
und the module are only visible in this module. To make dependencies “shareable” you need to declare as
api
. https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_recognizing_dependencies
e
thx christian!!
👍 1