ThreeTen-Backport error on Android – ZoneRulesException: No time-zone data files registered

For Android project you should use

implementation 'com.jakewharton.threetenabp:threetenabp:1.0.3'

Make sure you call AndroidThreeTen.init(this); before using the classes from the library. This will read the time zones data (included in the library). You can initialize the library in your Application class in the onCreate method just like it is recommended in the README.

Leave a Comment