Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building release app with skip-keychain raises error: "Missing classes detected while running R8" for com.google.errorprone.annotations.Immutable #3

Open
marcprux opened this issue Dec 1, 2024 · 0 comments

Comments

@marcprux
Copy link
Contributor

marcprux commented Dec 1, 2024

The following error will occur when building an app that depends on skip-keychain in release mode (e.g., using fastlane assemble from the Android/ folder):

ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /opt/src/github/skiptools/skipapp-notes/.build/Android/app/outputs/mapping/release/missing_rules.txt.
ERROR: R8: Missing class com.google.errorprone.annotations.Immutable (referenced from: com.google.crypto.tink.KeyTemplate and 11 other contexts)

> Task :app:minifyReleaseWithR8 FAILED
w: Detected multiple Kotlin daemon sessions at 
[Incubating] Problems report is available at: file:///opt/src/github/skiptools/skipapp-notes/.build/Android/skip.notes/reports/problems/problems-report.html

This is reported at tink-crypto/tink-java#7. The recommended workaround to add the following rules to the Android/app/proguard-rules.pro file seems to work:

-dontwarn com.google.errorprone.annotations.CanIgnoreReturnValue
-dontwarn com.google.errorprone.annotations.Immutable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant