The problem is that Android Studio requires minAPI 24 to use SimpleDateFormat objects.

I have minAPI 19 in the project. I know that minAPI can be changed, but the problem is that I test all the projects on my device, since I can not on the PC, but my device has API 22.

There are options for how to run the project on my device?

  • one
    SimpleDataFormat added from the first version of the API, what are you trying to do that you have this restriction? - temq
  • one
    And you really need this SimpleDateFormat , can this be enough? - post_zeew
  • one
    use the class SimpleDateFormat from the java.text package, and not the Android framework android.icu.text - pavlofff
  • Now I will test. - Nick

0