ticktock icon indicating copy to clipboard operation
ticktock copied to clipboard

Ticktock crashes when updating AGP & Desugar

Open giangpham96 opened this issue 3 years ago • 3 comments

What happened?

When I update AGP from 7.2.2 to 7.3.0 and Desugar from 1.1.6 to 1.2.0, Ticktock crashes with the following stacktrace

java.lang.Error: java.lang.ClassCastException: Cannot cast dev.zacsweers.ticktock.runtime.TickTockZoneRulesProvider to j$.time.zone.ZoneRulesProvider
    at j$.time.zone.ZoneRulesProvider$1.run(ZoneRulesProvider.java:165)
    at java.security.AccessController.doPrivileged(AccessController.java:43)
    at j$.time.zone.ZoneRulesProvider.<clinit>(ZoneRulesProvider.java:153)
    at j$.time.zone.ZoneRulesProvider.getRules(ZoneRulesProvider.java:240)
    at j$.time.ZoneRegion.ofId(ZoneRegion.java:120)
    at j$.time.ZoneId.of(ZoneId.java:409)
    at j$.time.ZoneId.of(ZoneId.java:357)

How to reproduce

In this repo, you can find the working version in main branch and the crash version in crash branch

If you can tell an workaround or create a hotfix, that would be superb

giangpham96 avatar Oct 10 '22 08:10 giangpham96

@ZacSweers maybe you know the answer?

giangpham96 avatar Oct 10 '22 11:10 giangpham96

Please don't tag maintainers you don't know, it's quite rude

ZacSweers avatar Oct 10 '22 14:10 ZacSweers

Apologize. 😔

giangpham96 avatar Oct 10 '22 15:10 giangpham96

This works again with AGP 7.4.0 and desugar 2.0.0

giangpham96 avatar Jan 15 '23 14:01 giangpham96