release build - R8 reports Missing class com.google.firebase.messaging.TopicOperation$TopicOperations
See original GitHub issue[READ] Step 1: Are you in the right place?
Issues filed here should be about bugs in the code in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:
- For general technical questions, post a question on StackOverflow with the firebase tag.
- For general Firebase discussion, use the firebase-talk google group.
- For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel.
[REQUIRED] Step 2: Describe your environment
- Android Studio version: gradle plugin 7.0.4 (that’s the thing that contains R8)
- Firebase Component: Messaging
- Component version: BoM 30.0.1
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
Do a release build that includes messaging, on android, with proguard / code shrinking enabled
Relevant Code:
Again, with a code shrink issue I don’t think code is required, I think that you only need to include the library (like in a quickstart) and then build for release
> Task :app:minifyProdReleaseWithR8
WARNING:Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /Users/mike/work/Kullki/ksocialscore/packages/public-app/android/app/build/outputs/mapping/prodRelease/missing_rules.txt.
WARNING:R8: Missing class com.google.firebase.messaging.TopicOperation$TopicOperations (referenced from: void com.google.firebase.messaging.TopicOperation.<init>(java.lang.String, java.lang.String))
I don’t see a proguard-rules.pro file in the source tree here so I can’t say for certain if it is incorrect rules, or just that there should be a proguard file and there isn’t one at all
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top Results From Across the Web
R8 Warning - firebase.messaging.TopicOperation ...
We are getting a warning from R8 when building a release version. Missing class com.google.firebase.messaging.TopicOperation$TopicOperations ...
Read more >android - Firebase + Proguard/R8 - Stack Overflow
I started a new Android Studio project and integrated Firebase in it but the problem still exists, obfuscated build is not visible to...
Read more >Topic messaging on Android - Firebase - Google
Subscribe the client app to a topic · Manage topic subscriptions on the server · Receive and handle topic messages · Build send...
Read more >MissingFirebaseInstanceTokenR...
Id. MissingFirebaseInstanceTokenRefresh. Summary. Missing Firebase Messaging Callback. Severity. Warning. Category. Correctness. Platform. Android.
Read more >Incidents - Firebase Status Dashboard
For additional information on these services, please visit https://firebase.google.com/. NOTE. For incidents related to Cloud Functions, Cloud Firestore and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fantastic! Thank you 😃 - I was actually responding to original version of comment when github helpfully async-updated the page as I was typing. Cheers
Sorry! I’ve overlooked this from the script file you’ve provided.
EDIT: It passed, but I see the issue now.
Thanks for the extra details you’ve provided, I’ll notify an engineer to see what we can do here.