AssertionError: No NameTypeIndex match for SHORT_STANDARD

If you are using the `Date()` or `Calendar.getInstance()` class/method to get the ‘time’, then you might have somewhere encountered this above-mentioned Crash in Android 8.0/8.1

Solution:
Just replace your

Date().time || Calendar.getInstance().timeInMillis

to

// Android 8.0 +
Instant.now().toEpochMilli()
Posted in Android

Write a comment