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

Upgrading to version 5.0.0 causes "Missing classes detected while running R8" error #831

Open
rpaynetoast opened this issue Jan 29, 2025 · 2 comments
Assignees

Comments

@rpaynetoast
Copy link

Gradle Version

8.10.2

AGP Version

8.8.0

Code Minifier/Optimizer

R8

Version

5.0.0

Sentry SDK Version

8.0.0

Steps to Reproduce

After upgrading from version 4.14.1 to 5.0.0 we are getting the following error:

Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in .../app/build/outputs/mapping/.../missing_rules.txt.

The error occurs when we build the app for a release with R8.

Expected Result

Able to build the release flavor of the app.

Actual Result

Unable to build the release flavor of the app.

@markushi
Copy link
Member

@rpaynetoast could you share the output of your /.../missing_rules.txt file? We definitely should update our AGP testing matrix to ensure issues like this one get caught earlier.

@markushi markushi self-assigned this Jan 29, 2025
@markushi markushi moved this from Needs Discussion to Todo in Mobile & Cross Platform SDK Jan 29, 2025
@rpaynetoast
Copy link
Author

@rpaynetoast could you share the output of your /.../missing_rules.txt file? We definitely should update our AGP testing matrix to ensure issues like this one get caught earlier.

@markushi here ya go:

# Please add these rules to your existing keep rules in order to suppress warnings.
# This is generated automatically by the Android Gradle plugin.
-dontwarn io.sentry.Hub

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Product Owner
Status: Todo
Development

No branches or pull requests

2 participants