Skip to content

a newer version of google_mlkit_text_recognition that supports GoogleDataTransport (~> 10.0) #669

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

Closed
matheuss-2001 opened this issue Aug 27, 2024 · 29 comments · Fixed by #693
Assignees
Labels
dependencies Pull requests that update a dependency file Out of scope Issues or features that are outside the scope of the plugin Text Recognition Issues corresponding to Text Recognition API

Comments

@matheuss-2001
Copy link

a newer version of google_mlkit_text_recognition that supports GoogleDataTransport (~> 10.0).

Firebase just update their package requires GoogleDataTransport (~> 10.0) , however google_mlkit_text_recognition depends on an earlier version of GoogleDataTransport (< 10.0). it caused conflict . I'm unable to install my pod commands in project.

@AndreyDAraya

This comment was marked as resolved.

@tomasatisocco
Copy link

tomasatisocco commented Aug 27, 2024

I'm also looking for a fix for this

[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport": In Podfile: firebase_messaging (from .symlinks/plugins/firebase_messaging/ios`) was resolved to 15.1.0, which depends on
Firebase/Messaging (= 11.0.0) was resolved to 11.0.0, which depends on
FirebaseMessaging (> 11.0.0) was resolved to 11.0.0, which depends on
GoogleDataTransport (
> 10.0)

    google_mlkit_text_recognition (from `.symlinks/plugins/google_mlkit_text_recognition/ios`) was resolved to 0.13.0, which depends on
      GoogleMLKit/TextRecognition (~> 6.0.0) was resolved to 6.0.0, which depends on
        GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
          MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
            GoogleDataTransport (< 10.0, >= 9.4.1)`

@fbernaly fbernaly added Text Recognition Issues corresponding to Text Recognition API dependencies Pull requests that update a dependency file labels Aug 27, 2024
@fbernaly
Copy link
Collaborator

send a PR and I will review, contributions are always welcome and easier to release.

@AndreyDAraya
Copy link

google/GoogleDataTransport#149

I open new issue, directly in GoogleDataTransport..
I feel that they must be update the version of nanopb

@matheuss-2001
Copy link
Author

I solved my problem downgrading my firebase versions to be compatible to google_mlkit_text_recognition -
firebase_messaging: '15.0.0'
firebase_core: '3.0.0'
firebase_auth: '5.0.0'

firebase_analytics: '11.0.0'

firebase_dynamic_links: ^6.0.0
cloud_firestore: '5.0.0'
firebase_storage: '12.0.0'

@AndreyDAraya
Copy link

The fix, I talk with Google member and recommend this actions:

google/GoogleDataTransport#149 (comment)

firebase_core: ^2.32.0
firebase_remote_config: ^4.4.7
firebase_analytics: ^10.10.7
...Other packages

Or the version old 3 month.
While google_ml_kit_flutter update GoogleDataTransport

@bensonarafat bensonarafat self-assigned this Aug 28, 2024
@tomasatisocco
Copy link

The fix, I talk with Google member and recommend this actions:

google/GoogleDataTransport#149 (comment)

firebase_core: ^2.32.0 firebase_remote_config: ^4.4.7 firebase_analytics: ^10.10.7 ...Other packages

Or the version old 3 month. While google_ml_kit_flutter update GoogleDataTransport

Yeah I locked those version as a workaround in the meanwhile

@bensonarafat
Copy link
Collaborator

send a PR and I will review, contributions are always welcome and easier to release.

There are no mlkit updates for ios yet

@michaelnabil230
Copy link

I have the same problem

@adilelli
Copy link

adilelli commented Sep 5, 2024

I'm having this issue

[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport":
In Podfile:
firebase_messaging (from .symlinks/plugins/firebase_messaging/ios) was resolved to 15.1.0, which depends on
Firebase/Messaging (= 11.0.0) was resolved to 11.0.0, which depends on
FirebaseMessaging (> 11.0.0) was resolved to 11.0.0, which depends on
GoogleDataTransport (
> 10.0)

mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 5.2.1, which depends on
  GoogleMLKit/BarcodeScanning (~> 6.0.0) was resolved to 6.0.0, which depends on
    MLKitBarcodeScanning (~> 5.0.0) was resolved to 5.0.0, which depends on
      MLKitCommon (~> 11.0) was resolved to 11.0.0, which depends on
        GoogleDataTransport (< 10.0, >= 9.4.1)

@harry-dickson
Copy link

@fbernaly

send a PR and I will review, contributions are always welcome and easier to release.

That's easy for a Collaborator to say 😉 I wouldn't have a clue where to start on that...

Without changing my pubspec.yaml I did pub upgrade (always good to get bugfixes?) and things broke. So now I have to downgrade a bunch of stuff??

The flutter/firebase/google ecosystem isn't quite as joined up and tested as us poor confused app developers would like.

Sorry this is mostly an unhelpful rant. (but it helped me; to feel better)

@BigMenya
Copy link

BigMenya commented Sep 9, 2024

Yeah faced unexpectedly when cleared build cache.
That worked for me:
yaml:
firebase_core: ^2.31.0
firebase_analytics: ^10.10.7
firebase_crashlytics: ^3.5.7
firebase_messaging: ^14.9.2
pub get

in ios folder:
pod install --repo-update
pod update Firebase/CoreOnly

@phluidaungyezaw
Copy link

same issue

firebase_analytics: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
Warning: firebase_app_id_file.json file does not exist. This may cause issues in upload-symbols. If this error is unexpected, try running flutterfire configure again.
firebase_crashlytics: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
firebase_dynamic_links: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport":
In Podfile:
firebase_crashlytics (from .symlinks/plugins/firebase_crashlytics/ios) was resolved to 4.1.2, which depends on
Firebase/Crashlytics (= 11.0.0) was resolved to 11.0.0, which depends on
FirebaseCrashlytics (> 11.0.0) was resolved to 11.0.0, which depends on
GoogleDataTransport (
> 10.0)

google_mlkit_text_recognition (from `.symlinks/plugins/google_mlkit_text_recognition/ios`) was resolved to 0.13.0, which depends on
  GoogleMLKit/TextRecognition (~> 6.0.0) was resolved to 6.0.0, which depends on
    GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
      MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
        GoogleDataTransport (< 10.0, >= 9.4.1)

google_mlkit_text_recognition: ^0.13.0
firebase_analytics: 11.0.0
firebase_core: 3.5.0
firebase_messaging: 15.1.2
firebase_dynamic_links: 6.0.7
firebase_auth: 5.3.0
firebase_crashlytics: 4.1.2

Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (7 days ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3

@ueman
Copy link
Contributor

ueman commented Sep 19, 2024

Duplicate of #675, in particular see #675 (comment)

Here's a link to Google's issue tracker about this problem and a link to an issue in another repo running into the same problem in case they figure out another solution.

@Doublon
Copy link

Doublon commented Sep 20, 2024

So no news, it’s starting to become blocking. I can't release a version of my app...

@mauriziopinotti
Copy link

mauriziopinotti commented Sep 20, 2024

So no news, it’s starting to become blocking. I can't release a version of my app...

It is blocking, not just starting to be.
However, for now the only way is to downgrade firebase and stick to the old MLKit stack.

In my understanding the "root" issue is this: https://issuetracker.google.com/issues/362452861
So the best we can do is comment there to have Google fix it sooner rather than later.

@fbernaly
Copy link
Collaborator

This is outside of our scope, we do not manage dependencies between the different Google's native frameworks. Posting here won't surface the issue to Google. This plugin is not supported by Google. Post in Google's threads to let them know about the issue and that it is blocking your app. This plugin only consumes Google's native dependencies and expose them to Flutter, but the authors of this plugin do not have access to the native source code of those dependencies.

@bcaspe
Copy link

bcaspe commented Sep 20, 2024 via email

@fbernaly fbernaly added the Out of scope Issues or features that are outside the scope of the plugin label Sep 20, 2024
@bahadirarslan
Copy link

Someone opened an issue to Google update MLKitCommons dependencies
googlesamples/mlkit#877

@vietstone-ng
Copy link

I'm facing this issue too. Xcode 16 requires the latest firebase packages, but google_mlkit_text_recognition is blocking it

@rusudinu
Copy link

rusudinu commented Oct 1, 2024

I'm facing this issue too. Xcode 16 requires the latest firebase packages, but google_mlkit_text_recognition is blocking it

you can use this in order to use the older version of the firebase libraries with xcode 16 (Build Settings -> Apple Clang - Language - Modules -> set Allow Non-modular includes in Framework Modules to 'Yes):
image

@vallerydelexy
Copy link

I'm facing this issue too. Xcode 16 requires the latest firebase packages, but google_mlkit_text_recognition is blocking it

you can use this in order to use the older version of the firebase libraries with xcode 16 (Build Settings -> Apple Clang - Language - Modules -> set Allow Non-modular includes in Framework Modules to 'Yes): image

well thats not a fix, its just workaround with unknown consequences.

@rusudinu
Copy link

rusudinu commented Oct 1, 2024

I'm facing this issue too. Xcode 16 requires the latest firebase packages, but google_mlkit_text_recognition is blocking it

you can use this in order to use the older version of the firebase libraries with xcode 16 (Build Settings -> Apple Clang - Language - Modules -> set Allow Non-modular includes in Framework Modules to 'Yes): image

well thats not a fix, its just workaround with unknown consequences.

i know it is not a permanent fix, but it's a viable workaround

@harry-dickson
Copy link

Go to the Google Issue and hit the +1 (I am impacted) at the top
Mayeb leave a comment. Hopefully they will notice it eventually - it is stuck in their P4 bucket at the moment

@OutdatedGuy
Copy link
Contributor

The MLKitCommon and other GoogleMLKit dependencies are now upgraded. Just need to update the flutter packages.

I believe this PR will fix the issue.

@Xim-ya
Copy link

Xim-ya commented Oct 7, 2024

The MLKitCommon and other GoogleMLKit dependencies are now upgraded. Just need to update the flutter packages.

I believe this PR will fix the issue.

I tested with this dependency changes, and thanks to it, I was able to resolve the related issues. I'm really grateful.

@muhammednazil
Copy link

I upgrade the google_mlkit_face_detection: ^0.11.1 my pod is not updating it gives an error like below

[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport":
In snapshot (Podfile.lock):
GoogleDataTransport (= 10.1.0, ~> 10.0)

In Podfile:
firebase_messaging (from .symlinks/plugins/firebase_messaging/ios) was resolved to 15.1.0, which depends on
Firebase/Messaging (= 11.0.0) was resolved to 11.0.0, which depends on
FirebaseMessaging (> 11.0.0) was resolved to 11.0.0, which depends on
GoogleDataTransport (
> 10.0)

google_mlkit_commons (from `.symlinks/plugins/google_mlkit_commons/ios`) was resolved to 0.8.1, which depends on
  MLKitVision was resolved to 0.60.0, which depends on
    MLKitCommon (~> 0.60) was resolved to 0.61.0, which depends on
      GoogleDataTransport (~> 3.2)

You have either:

  • out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
  • changed the constraints of dependency GoogleDataTransport inside your development pod google_mlkit_commons.
    You should run pod update GoogleDataTransport to apply changes you've made.

@vietstone-ng
Copy link

It's resolved with google_mlkit_text_recognition: 0.14.0. And set the minimum iOS target to 15.5.

@bensonarafat
Copy link
Collaborator

We can close this now! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Out of scope Issues or features that are outside the scope of the plugin Text Recognition Issues corresponding to Text Recognition API
Projects
None yet
Development

Successfully merging a pull request may close this issue.