Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash at Runtime Startup #5

Closed
Shabinder opened this issue May 5, 2021 · 7 comments
Closed

Crash at Runtime Startup #5

Shabinder opened this issue May 5, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@Shabinder
Copy link

Shabinder commented May 5, 2021

Hey , Thanks for your work, I am interested in using your Lib in one of my projects : SpotiFlyer,
But unfortunately, It crashes as Runtime.

java.lang.NoSuchMethodError: No virtual method getINFINITE-UwyO8pc()D in class Lkotlin/time/Duration$Companion; or its super classes (declaration of 'kotlin.time.Duration$Companion' appears in /data/data/com.shabinder.spotiflyer/code_cache/.overlay/base.apk/classes3.dex)
        at io.github.reactivecircus.cache4k.CacheBuilderImpl.<init>(Cache.kt:109)
        at io.github.reactivecircus.cache4k.Cache$Builder$Companion.newBuilder(Cache.kt:99)
@Shabinder
Copy link
Author

Maybe This Could help: chrisbanes/Store@1ddf5e6

@ychescale9
Copy link
Member

Yes the duration APIs are often binary incompatible in different Kotlin versions. I've updated to Kotlin 1.5 and I'll do a new release soon so once you are able to update to Kotlin 1.5 (you'll probably have to wait a bit as you're using compose) it should work:)

@ychescale9 ychescale9 added the bug Something isn't working label May 5, 2021
@Shabinder
Copy link
Author

Shabinder commented May 6, 2021

@ychescale9 I cloned and built your lib with Kotlin 1.4.32 same as the project, but still getting the same error:
image

@Shabinder
Copy link
Author

Shabinder commented May 6, 2021

For now, I will copy the sources and use in the project, will depend on lib when compose is compatible with Kotlin 1.5

@ScottPierce
Copy link
Contributor

@ychescale9 when is the new release coming? I'm blocked by this currently.

@ychescale9
Copy link
Member

Sorry for the wait, I'll try to do a release tomorrow.

@ychescale9
Copy link
Member

0.2.0 has been released. Please let me know if this works with Kotlin 1.5.0 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants