Skip to content

Bump R8 past 8.9.35 so it can parse Kotlin 2.3 class metadata #112

Description

@OmarAlJarrah

Summary

The shrink-survival test module pins R8 8.9.35, which emits non-fatal Info/Warning lines
during the shrink run reporting that it cannot parse Kotlin 2.3 @Metadata (R8 8.9.x supports
Kotlin metadata up to 2.1).

This does not affect output correctness — the @Metadata annotation is retained via
-keepattributes RuntimeVisibleAnnotations and -keep class kotlin.Metadata, and the shrunk
program's Jackson Kotlin-reflection round-trip passes — but it adds log noise to every shrink run
and could mask a genuinely relevant warning.

Suggested direction

Bump the r8 version in gradle/libs.versions.toml to a release whose Kotlin-metadata support
covers the Kotlin version this project compiles with (currently 2.3), once such a release is
available, and confirm the shrink-survival run is quiet. Until then the warnings are expected and
harmless.

Follow-up to the R8 shrink-survival module (PR adding sdk-shrink-test).

Activity

  1. OmarAlJarrah commented on Jun 24, 2026

    @OmarAlJarrah
    MemberAuthor

    Resolved on main. R8 was bumped from 8.9.35 to 9.1.31 in PR #161 (commit c8e31ae, "build: upgrade Kotlin to 2.4.0 and R8 to 9.1.31"); 9.1.31 parses the Kotlin metadata this project now emits. The standalone bump in PR #143 is therefore superseded and has been closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild / CI / packagingtech-debtsimplification / cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions