You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JosepBergay
changed the title
java.lang.NoClassDefFoundError: java.time.Duration on api 23
WorkManager: java.lang.NoClassDefFoundError: java.time.Duration on api 23
Aug 3, 2020
Thanks, didn't know that.
But I'm not (at least directly) using Duration API and neither does the constructor. OneTimeWorkRequest seems to work as expected, even when applying an initial delay with a method that has an overload involving Duration too.
If WorkManager is supposed to work on >14, how can I then build a PeriodicWorkRequest from NativeScript?
Environment
Describe the bug
Runtime error when instantiating 'androidx.work.PeriodicWorkRequest.Builder' on api 23:
To Reproduce
Clone sample project and
tns run android
on an api 23 device.Expected behavior
No error. On api >=27 seems to work as expected.
Sample project
https://github.com/JosepBergay/ns_workermanager_test/
Additional context
Also mentioned here: #1488 (comment)
The text was updated successfully, but these errors were encountered: