-
Notifications
You must be signed in to change notification settings - Fork 653
Description
Describe the bug
Since kotlinx-serialization-json
v1.9.0
, I get an R8 warning when building a release version of my Android app using Gradle.
I get the following warning:
The type "<1>$*" is used in a field rule. The characters in this type are legal for the JVM, but unlikely to originate from a source language. Maybe this is not the rule you are looking for.
When checking the configuration.txt file in the mapping folder (when compiling using Android Studio), I see exactly one occurrence of the <1>$*
string. It occurs only in the r8\kotlinx-serialization-common.pro
file.
It looks like this is introduced since #2983 (specifically, in this commit: 6665953)
Is this a reason to rollback to the previous version? Or is there something I should change in my code to prevent this?
Environment
- Kotlin version: [2.0.21]
- Library version: [1.9.0]
- Kotlin platforms: [JVM 21.0.6]
- Gradle version: [8.13]
- IDE version [Android Studio 2025.1.1]
- Targeting Android SDK 36, compiling using SDK 36, minimum SDK 31