Skip to content

Bump the R8 shrinker's version #507

Description

@IndiTheo

The used version for R8 is 8.9.35 which supports Kotlin up to 2.1:

"com.android.tools:r8:8.9.35",

Compat table between R8 and Kotlin is here: https://developer.android.com/build/kotlin-support

Depending on libraries compiled with Kotlin > 2.1 leads to:

Warning: An error occurred when parsing kotlin metadata.  This normally happens when using a newer version of kotlin than the kotlin version released when this version of R8 was created. To find compatible kotlin versions, please see: https://developer.android.com/studio/build/kotlin-d8-r8-versions
Info: Class com.flyfishxu.kadb.exception.AdbStreamClosed has malformed kotlin.Metadata: java.lang.IllegalArgumentException: Provided Metadata instance has version 2.3.0, while maximum supported version is 2.1.0. To support newer versions, update the kotlin-metadata-jvm library.

and errors follow.

Can we bump it in the near time to support newer versions?

Currently stuck with building beacuse of this. Is there a way to disable R8 for a specific library or use a newer R8 version without patching toolchains?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions