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

DateTime android 5-6-7 #47

Closed
Alival-IT opened this issue Jul 1, 2021 · 2 comments
Closed

DateTime android 5-6-7 #47

Alival-IT opened this issue Jul 1, 2021 · 2 comments

Comments

@Alival-IT
Copy link

Alival-IT commented Jul 1, 2021

Hello it seems like there is an issue with the following class, have you encountered the same issues ?

java.lang.NoClassDefFoundError: kotlinx.datetime.Instant

similar to

Kotlin/kotlinx-datetime#97

Edit1:
The fix should be
https://developer.android.com/studio/write/java8-support#library-desugaring

Will try tomorrow, and let you know, it might be good to include it in the readme if it works

@nodh
@JesusMcCloud

@nodh
Copy link
Contributor

nodh commented Jul 2, 2021

I've never tried it on those older Android version, but if the suggested solutions works, I'll add that to our readme.

@Alival-IT
Copy link
Author

@nodh

it works, so the fix is basically the following:

compileOpitons
coreLibraryDesugaringEnabled true

dependencies
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'

@nodh nodh closed this as completed in ebb6644 Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants