-
Notifications
You must be signed in to change notification settings - Fork 28k
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
Missing classes detected while running R8 when using camera: ^0.11.0+2
and google_sign_in_android: ^6.1.30
#155458
Comments
This comment was marked as spam.
This comment was marked as spam.
Hi @ruivop, |
I am using Gradle 8.3, but not coreLibraryDesugaringEnabled (the deafult I created an example project: |
Thanks for providing the complete sample project. I can also reproduce the issue now on a newly created Flutter project. Checked on Flutter master To explain a bit about my result on above comment, I did check on a project that contains many dependencies. Even though I use the same AGP and Gradle as yours, the issue is not reproduced on that project. Not sure which factor causes the difference. |
camera: ^0.11.0+2
and google_sign_in_android: ^6.1.30
Able to recreate this. From what I can see, the chain is (from the error message):
and then (using the r8 rule
Should be able to fix this by defining consumer proguard rules in the camera plugin, and then specifying to either keep or not warn (just need to figure out which one now...) |
This should be fixed in the latest versions of |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to reproduce
camera: ^0.11.0+2
andgoogle_sign_in_android: ^6.1.30
(currently, the latest ones)flutter build apk
Expected results
Should build
Actual results
Code sample
Just the deafult code (StatefulWidget widget that incresases a number) will do.
Screenshots or Video
No response
Logs
Logs
flutter build apk --verbose(the bottom output, without my directories)
pubspec.lock
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: