-
Notifications
You must be signed in to change notification settings - Fork 131
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
Crash when a release build is run in R8 full mode #647
Comments
Hi @mikescamell Thanks for reporting this! But I am not able to reproduce this issue so that I can verify if the solution works. Can you update this sample to reproduce this issue. |
Hey @poovamraj thanks for getting back to me :) I tried my best to recreate this in the sample this morning but no luck, I will try a bit more later. But I can confirm that without these rules in our proguard file and R8 full mode on, the app will crash with the same exception.
Seeing as R8 full mode is now the default in AGP 8 I imagine you might get more reports in future 😬 And it seems like you had a similar report here already |
@mikescamell can you share the snippet that you use that is causing the crash? I totally agree that current configuration can lead to exception. I just want to understand fully about the issue before fixing it. Reaching out in the other thread as well. |
@mikescamell can you also ensure the project is using same Android Studio, AGP and other build tools with the same version as yours? You can share it here and I can check it out as well. |
We're using:
I can reproduce it in the Blinkist app but not the Sample app you mentioned, which is kinda strange 🤔 Maybe our implementation using the Auth0 SDK is a bit more involved than the sample app, so R8 can strip the code out of the sample with no issues. |
Exactly, that's why I was wondering whether you could share your code snippet on how you use it. |
Ok here's our Service class that we use within the app.
|
Hi @mikescamell, we were not able to reproduce this but since it is recommended in the official documentation and wouldn't affect the functionality. We are going ahead with this. Can you check out this PR and let us know if this fixes your issue - #652 We can follow up on the PR and we can close this issue. |
Describe the problem
When running R8 in full mode (the upcoming default for Android Gradle Plugin 8) the app will crash on startup.
I believe that the SDK is missing some Proguard rules for Gson. See here.
What was the expected behavior?
No issues when running a release build with R8 full mode.
Reproduction
Run a release build with R8 full mode turned on
Environment
The text was updated successfully, but these errors were encountered: