I'm testing Java 8+ API desugaring support on a project with minSdk 23.
When I use the java.time
library, for example val instant = Instant.now()
, I get the following error:
Call requires API level 26 (current min is 23): java.time.Instant#now
The code compiles and executes correctly.
Can I assume it will work for all devices?
EDIT: I've tried with API 29 (physical device) and API 23 (emulator).