How to add Duration to LocalDateTime for API level lower than 26

后端 未结 2 1612
误落风尘
误落风尘 2021-01-12 15:40

I am developing an application for API level 19 (KitKat).

I have a LocalDateTime object and a Duration object. I need to add this Dur

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-12 16:20

    Currently you can enable java.time in lower level apis by upgrading grade to 4.0.0. read more here.

提交回复
热议问题