-
Notifications
You must be signed in to change notification settings - Fork 755
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
Ios GoogleDataTransport dependency error when using firebase_crashlytics #27
Comments
Hi @HakimKramdi thanks for opening the issue. I think according to this the GoogleDataTransport version should be |
Hi @bharat-biradar thank you for your answer. A simple way to reproduce this is to use your example project included in this repo. I just added a dependency to firestore: cloud_firestore: ^2.0.0 #added this only dependency google_ml_kit: ` in the IOS folder, with the command "pod install" I still have this error: `[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport": In Podfile:
You have either:
This is the result fo flutter doctor: `Doctor summary (to see all details, run flutter doctor -v): • No issues found!` Does that mean it not possible to use any dependency to firebase with this plugin ? Does anyone use this plugin with any firebase dependency like (cloud_firestore, firebase_crashlytics ... ) Regards, |
@fbernaly Any suggestions on how to resolve this. |
@HakimKramdi : the issue is the dependencies that each Flutter plugin has, when they are resolved by Flutter they depend on different versions. That means that our dependencies will adapt, you can change the pod version in your podfile. But Luckily they provide a way to override You can find it here: I tried that in our example app, I added
and then I added to the
and the dependencies are resolved. Without that I hope that helps. Confirm if this resolves your issue, so we can close it. |
I am having the same issue :
But it's an issue for Google, not this plugin because it's Google's ML kit APIs that depends on an old version of GoogleDataTransport... |
@Tom3652 : I agree with you, we are consuming their pods. In the meantime try the workaround I shared above. |
Hi @Tom3652. I have tried your solution but when I apply it, I get a conflict with google_mobile_ads in version 0.13.0
|
@adriancsbna : we wont get a definitive solution until Google fixes their dependencies, my suggestion: try with a version that satisfies your project
|
@fbernaly you are right. @adriancsbna the solution was provided by @fbernaly : That's why for now i am not using this plugin because i need more the latest SDKs for the other products than the ML unfortunately I think i will make an issue on the flutter/flutter repo about it today directly for Google |
@fbernaly Thank you for the suggestion. After downgrading my firebaseSdk version with I had another issue linked to the fact that I use With this option, trying to use But after some research I used I also had to downgrade some of my other dependencies to be compatible with the But at the end everything is working. For me it's ok for now, but I understand @Tom3652 , some projects may need the latest I hope Google fixes their dependencies soon. Thank again for the help |
@Tom3652 and @HakimKramdi : Thanks for confirming that downgrading Thanks for using this Flutter plugin. We are still working on Features and adding more every day. |
Hello guys, Just to tell you that the issue is now known by Google, there is a direct dependency conflict with the I will let you know once the issue is resolved by Google. |
Just faced the same problem, here are my steps to solve this problem:
Thank you guys for quick feedback! Please let me know when Google resolves this dependency conflict. |
@Nickkorol this didn't work for me, sadly. |
I downgrade my firebase plugins
Now, It's working to me |
@fbernaly I don't want to downgrade my plugins and I think it's not a solution. |
The issue could stay opened but i have already created one in the FlutterFire repo as mentioned above. |
I understand that downgrading is not an optimal solution, but you need to understand as well that this plugin is a wrapper of the Google Decencies, all of the heavy lifting in done in the native frameworks provided by Google. The iOS dependencies are not open to us, and Google should fix the compatibility between their multiple pods. |
check out this google issue tracker |
Fix is planned to be released around the end of the month. link |
I downgraded manually my dependencies to:
But I did it by trial and error. |
@ericksprengel: unfortunately no, there is no other way until Google fixes this: https://issuetracker.google.com/issues/188452839 |
Seems like google fixed this yesterday: https://issuetracker.google.com/issues/188452839#comment13 |
Fix is hereI was able to find a fix for this issue. Our current podspec does not specify the ML Kit versions: https://github.com/bharat-biradar/Google-Ml-Kit-plugin/blob/master/ios/google_ml_kit.podspec#L19-L26. And we want to keep it that way so it is open and you can set the version you need and be able to resolve dependencies that may conflict with other plugins. However you can specify the version in your pod file like this:
I tried this in our example app and it is working, I was able to run the app in iOS using these other plugins as well:
After running After running If you encounter issues with Make sure that you are pulling the latest code from our master like this:
Latest version in pub.dev is 0.6.0 however master have some recent changes that we will publish soon in 0.7.0. I hope this helps. Thanks everyone for your patience. |
When I tried this I got the following error:
Please advice |
Use this in your
Explanation:
✅ |
To re-iterate @fbernaly great answer, here are the exact steps to do here:
NOTE:As mentioned by the maintainers, this fix is temporary until the changes are updated on |
I'm really unsure whether or not this was fixed in Version If this was fixed, can we please update the README So that users like me are no longer directed to this issue? |
For anyone who faced the issue of FirebaseCoreOnly |
Hello,
Im my project I have a these two dependencies:
google_ml_kit: 0.4.0
firebase_analytics: ^8.0.3
firebase_crashlytics: ^2.0.4
On android this works perfectly :)
But on on IOS when trying to use pod install I have this error:
[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport":
In snapshot (Podfile.lock):
GoogleDataTransport (= 9.0.0, ~> 9.0)
In Podfile:
firebase_crashlytics (from
.symlinks/plugins/firebase_crashlytics/ios
) was resolved to 2.0.4, which depends onFirebase/Crashlytics (= 8.0.0) was resolved to 8.0.0, which depends on
FirebaseCrashlytics (
> 8.0.0) was resolved to 8.0.0, which depends on> 9.0)GoogleDataTransport (
Is there a way to have google_ml_kit depending on a on higher version of GoogleDataTransport or any way to go around this issue ?
Thank you in advance
The text was updated successfully, but these errors were encountered: