korlibs / korlibs/korlibs-time
Cannot access 'com.soywiz.klock.internal.Serializable' which is a supertype of 'com.soywiz.klock.DateTimeTz'. Check your module classpath for missing or conflicting dependencies
- Dominant language
- Kotlin
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
I added your library in my KMM project, but get the following error message:
```
Cannot access 'com.soywiz.klock.internal.Serializable' which is a supertype of 'com.soywiz.klock.DateTimeTz'.
Check your module classpath for missing or conflicting dependencies
```
I setup a minimal example here: https://github.com/ln-12/KlockTest
The error occurs here when I navigate to this file in Android Studio: https://github.com/ln-12/KlockTest/blob/feb419e73ae4ad995d062973d527fa428b9f2dd3/androidApp/src/main/java/com/example/klocktest/android/MainActivity.kt#L18
Changing `implementation` to `api` did not solve the problem. Do you have any idea how to solve this?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the minimal KMM example at https://github.com/ln-12/KlockTest and reproduce the error in androidApp/src/main/java/com/example/klocktest/android/MainActivity.kt at line 18. Inspect the Klock dependency and module classpath, including the attempted implementation-to-api change. Done means the example can access DateTimeTz without the missing or conflicting Serializable supertype error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100