Skip to content

Android r8 Error: java.util.ConcurrentModificationException #9861

@Pmr-precure

Description

@Pmr-precure

Description

Hi,

After we updated to 9.0.40, we are getting this error when trying to build a release version for Android.

Image

I happens when r8 is enabled and in our config file we keep this:

-keep class com.google.crypto.tink.** { *; } (Tbh i cant remember why we added this, but it was for sure to fix other bugs)

This prevents us from building.

If we remove this:

-keep class com.google.crypto.tink.** { *; }

Then it builds just fine. No idea why this could be to be honest.

BR.

Steps to Reproduce

  1. clone repo.
  2. Build a release build
  3. observe error.
  4. remove # -keep class com.google.crypto.tink.** { *; } in proguard.cfg.
  5. delete bin and obj folder.
  6. Build release version.
  7. Success.

Link to public reproduction project repository

https://github.com/Pmr-precure/MauiTestProject/tree/r8_bug

Version with bug

9.0.40 SR4

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.30 SR3

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

Only by removing -keep class com.google.crypto.tink.** { *; }

Relevant log output

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions