Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWorkManager: java.lang.NoClassDefFoundError: java.time.Duration on api 23 #1630
Comments
|
As stated here: https://developer.android.com/reference/java/time/Duration this API is added in Android API 26 |
Thanks, didn't know that. 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 androidon 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)