I need to use method setStartTimestamp(OffsetDateTime startTimestamp)
but my minSdk is 21 so it shows me Call requires API level 26
. Is there any way how can I use OffsetDateTime on lower apis?
I need to use method setStartTimestamp(OffsetDateTime startTimestamp)
but my minSdk is 21 so it shows me Call requires API level 26
. Is there any way how can I use OffsetDateTime on lower apis?
java.time
APIs on Android require API 26.
For older API levels you can use ThreeTenABP which is the Android version of JSR-310 java.time
backport for Java 6.