cannot resolve symbol 'java.time.LocalDate' error in android studio

前端 未结 3 1586
北海茫月
北海茫月 2020-11-27 07:44

I am trying to use java.time.LocalDate in my android app, however if I try to import it, then any class from java.time gives a cannot resolve symbol error in Android studio

3条回答
  •  我在风中等你
    2020-11-27 08:07

    Yes, Android does not support Java-8. And about the new date/time-API contained in Java-8, you can look at this issue:

    http://code.google.com/p/android/issues/detail?id=62192

    Currently there are no plans to introduce JSR-310 (java.time-package) in Google Android.

提交回复
热议问题