bazelbuild / bazelbuild/rules_android
Library desugaring doesn't appear to be working correctly
- Dominant language
- Java
- Stars
- 203
- Forks
- 95
- PR merge metrics
- No merged PRs in 30d
Description
`rules_android` appears to be unable to correctly desguar the Navigation SDK with `--desugar_java8_libs` enabled despite meeting all of the criteria mention in the change logs.
The runtime crash pulled from a device running API 30:
```
java.lang.NoSuchMethodError: No virtual method convert(Ljava/time/Duration;)J in class Ljava/util/concurrent/TimeUnit; or its super classes (declaration of 'java.util.concurrent.TimeUnit' appears in /apex/com.android.runtime/javalib/core-oj.jar)
```
I'm able to reproduce this using:
- min sdk: 28
- target sdk: 36
- compile sdk: 36
- Nav SDK 6.x releases (have not tested against 7.x)
Contributor guide
Assessment
This issue has not been assessed yet.