bazelbuild / bazelbuild/rules_android

Library desugaring doesn't appear to be working correctly

Open
#455 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.