Skip to content

Library desugaring doesn't appear to be working correctly #455

@Bencodes

Description

@Bencodes

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions