question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created a year ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mikehardycommented, May 25, 2022

Fantastic! Thank you 😃 - I was actually responding to original version of comment when github helpfully async-updated the page as I was typing. Cheers

2reactions
argzdevcommented, May 25, 2022

Sorry! I’ve overlooked this from the script file you’ve provided.

EDIT: It passed, but I see the issue now.

> Task :app:minifyReleaseWithR8
AGPBI: {"kind":"warning","text":"Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /Users/alvinrustan/Desktop/test_folder/rnfbdemo/android/app/build/outputs/mapping/release/missing_rules.txt.\n","sources":[{}]}
AGPBI: {"kind":"warning","text":"Missing class com.google.firebase.messaging.TopicOperation$TopicOperations (referenced from: void com.google.firebase.messaging.TopicOperation.<init>(java.lang.String, java.lang.String))","sources":[{}],"tool":"R8"}

Thanks for the extra details you’ve provided, I’ll notify an engineer to see what we can do here.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found