Skip to content

"Missing class libcore.icu.NativePluralRules (referenced from: java.lang.String io.github.skeptick.libres.strings.PluralString_androidKt.getPluralizedString(...)" in :app:minifyReleaseWithR8 #177

@janexner

Description

@janexner

When I try to generate a signed APK for release, the gradle task :app:minifyReleaseWithR8 fails with this message:

"Missing class libcore.icu.NativePluralRules (referenced from: java.lang.String io.github.skeptick.libres.strings.PluralString_androidKt.getPluralizedString(io.github.skeptick.libres.strings.PluralForms, java.lang.String, int))"

There is an open issue over at libres for it: Skeptick/libres#41, but it has been open for 2 years.

It looks like work on libres is now on the 2.0.0 stream, could this library switch to that? Would that help?

I'm using

  • human-readable 1.12.3,
  • Android Studio Narwhal 4 Feature Drop 2025.1.4,
  • kotlin 2.3,
  • agp 8.13.2
  • composeBom 2025.12.01

Workaround is to add "-dontwarn libcore.icu.NativePluralRules" to your proguard-rules.pro file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions