-
Notifications
You must be signed in to change notification settings - Fork 103
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
Clock.System.now() fails on Android SDK less than 26 #97
Comments
This looks extremely strange. |
Looks weird - tried to reproduce the problem with another project, but it does not compile because "Clock is deprecated, use TimeSource".
|
You've likely imported the wrong |
There is my sample code: https://github.com/dekar91/kolinx.datetime_clock
|
Judging by the trace, this reproduces another problem, possibly a duplicate of #92, though I'll look into it. Observe that the class that is not found in this case is |
Well, I reproduces the problem a little bit incorrecly. There is full stacktrace from my main project:
I see, the same supressed Update tried to add |
WeSeems I've found a solution:
Android 6 does not crash anymore. |
Hi!
Call of
Clock.System.now()
fails withjava.lang.NoClassDefFoundError: kotlinx.datetime.Instant()
on Android 7 and earlier because Instant() was added to SDK in version 26.Should I provide platform-specific implementation instead?
The text was updated successfully, but these errors were encountered: