-
Notifications
You must be signed in to change notification settings - Fork 335
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
Conflict Between Firebase Packages and Flutter_reactive_blue #115
Comments
@plyrek thanks for reporting the issue. I couldn't reproduce it by using the steps you supplied. What I did was following:
I did however upgrade the protobuf dependencies and will integrate them soon in master. Can you test it with your project again? Else I need a bit more info:
|
Thank you so much for your quick action on this issue. The updating of protobuf dependencies did the trick! It is contributors like you that make the Flutter community such a great one! |
The problem persists with following : pubspec.yaml firebase_core: ^0.5.2 Error
Considering lot of people use the firebase, it will be good if flutter_reactive_ble remain compatible with protobuf library of firebase plugins. Requesting @remonh87 to reopen this issue. |
@archanpaul I will reopen it because of the visibility for us. We have btw a version with the latest protobuf: |
@remonh87 No I have not declared firebase BOM in gradle. For me only this combination works .. firebase_core: ^0.5.0 I can't fit in flutter_admob any versions at all. |
this one is more optimized for android. Fix for #115
This issue is fixed in version 2.7.1 |
Thank you @remonh87 for the fix. Working with following (all latest as of today) : |
The Firebase Packages:
firebase_core: ^0.5.0
firebase_auth: ^0.18.0+1
cloud_firestore: ^0.14.0+2
recently updated to use protobuf-javalite - 3.110.jar which conflicts with the jar file protobuf-lite-3.0.1.jar used in your package making any app which uses Firebase incompatible with your package. You are not alone, several ble packages use this jar and are incompatible, Your package however, was very recently updated and seems active and I thought you would like to know.
To Reproduce
Steps to reproduce the behavior:
Add the following to pubspec.yaml and try to build an android app
firebase_core: ^0.5.0
firebase_auth: ^0.18.0+1
cloud_firestore: ^0.14.0+2
flutter_reactive_ble: ^2.5.1
Expected behavior
A clean build to an Android device or emulator
Actual behavior
Build fails with the following errors
1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.google.protobuf.AbstractMessageLite found in modules protobuf-javalite-3.11.0.jar (com.google.protobuf:protobuf-javalite:3.11.0) and protobuf-lite-3.0.1.jar (com.google.protobuf:protobuf-lite:3.0.1)
The text was updated successfully, but these errors were encountered: