-
Notifications
You must be signed in to change notification settings - Fork 594
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
Duplicate classes jetified-protolite-well-known-types and protobuf-java #6359
Comments
Hi @CloudLevi, thank you for reaching out. I was able to reproduce the issue. I'll notify our engineers about this and see what we do here. Thanks! |
This is a known issue when using You'll need to exclude either javalite or protobuf-java. |
@daymxn thank you for your response. The thing is, I've tried many combinations of excluding modules and still can't get a successful build. I'll list some examples of what I've tried. Excluding
|
I was able to reproduce this, however, in doing so I ran into something. I don't think com.google.cloud:google-cloud-pubsub is meant for use on Android. I think its meant for a server environment. Can you verify that it is usable in Android? |
@davidmotson you might be right... It's quite difficult to find valid information on this topic, but here's what I found. Even though it seems like using pubsub on Android is possible, it's likely not the best approach. It would be better to connect it to Android via Firebase Messaging, as suggested here: https://stackoverflow.com/questions/75983750/pub-sub-on-android-via-google-sign-in Also, I found this in connection to Firebase and PubSub: Here are some examples of pubsub usage on Android: I will investigate this approach and can report back, but it seems for now this particular issue of conflicts can be closed |
[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:
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
When using firebase APIs with
com.google.cloud:google-cloud-pubsub
, I am not able to build the project due to many duplicate class errors. If I add the following exclusions in thebuild.gralde
, the app is able to run, but firebase services fail immediately:Steps to reproduce:
Try to build the project with firebase APIs and google cloud pubsub.
Relevant Code:
Versions of firebase APIs used:
Google Cloud PubSub version used:
Build error output attached in a file: firebase_conflict_error_output.txt
The text was updated successfully, but these errors were encountered: