Skip to content

[cloud_firestore] Flutter fails to get package cloud_firestore #1604

Closed

Description

@saurabh-mhaisekar

Describe the bug
I'm trying to add cloud_firestore package into the flutter but installation fails with below error

To Reproduce
Steps to reproduce the behavior:

  1. add Dependancy cloud_firestore ^0.13.0+1 into pubspec.yaml
  2. Run flutter pub get
  3. Error
Running "flutter pub get" in MyApp...                        
The current Flutter SDK version is 1.9.1+hotfix.6.



Because MyApp depends on cloud_firestore >=0.13.0+1 which requires Flutter SDK version >=1.10.0 <2.0.0, version solving failed.
pub get failed (1)
exit code 1

Expected behavior
Cloud Firestore package gets installs and flutter builds.

Activity

  1. iapicca commented on Dec 11, 2019

    @iapicca

    Hi @saurabhsm
    did the workaround suggested by @garrettmortara
    worked for you?

    If it didn't or is not suitable for you to change channel
    could you please provide your updated flutter doctor -v
    and your flutter run --verbose?
    Also, to better address the issue, would be helpful
    if you could post a minimal code sample
    or the steps to reproduce the problem.
    Thank you

  2. jpainam commented on Dec 11, 2019

    @jpainam

    Hi, I also have the same problem. It happens when I add this dependency cloud_firestore: ^0.13.0+1 to pubspec.yaml.
    Here is my flutter doctor -v

    [√] Flutter (Channel stable, v1.9.1+hotfix.6, on Microsoft Windows [Version 10.0.18362.476], locale en-GB)
        • Flutter version 1.9.1+hotfix.6 at D:\flutter\flutter
        • Framework revision 68587a0916 (3 months ago), 2019-09-13 19:46:58 -0700
        • Engine revision b863200c37
        • Dart version 2.5.0
    
    [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
        • Android SDK at D:\android\Android\sdk
        • Android NDK location not configured (optional; useful for native profiling support)
        • Platform android-28, build-tools 28.0.3
        • ANDROID_HOME = D:\android\Android
        • Java binary at: D:\Program Files\Android\Android Studio\jre\bin\java
        • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
        • All Android licenses accepted.
    
    [√] Android Studio (version 3.5)
        • Android Studio at D:\Program Files\Android\Android Studio
        • Flutter plugin version 42.0.1
        • Dart plugin version 191.8593
        • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    
    [!] IntelliJ IDEA Ultimate Edition (version 14)
        • IntelliJ at C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.0
        X Flutter plugin not installed; this adds Flutter specific functionality.
        X Dart plugin not installed; this adds Dart specific functionality.
        • For information about installing plugins, see
          https://flutter.dev/intellij-setup/#installing-the-plugins
        X This install is older than the minimum recommended version of 2017.1.0.
    
    [√] VS Code, 64-bit edition (version 1.40.2)
        • VS Code at C:\Program Files\Microsoft VS Code
        • Flutter extension version 2.21.1
    
    [√] Connected device (2 available)
        • PRA AL00X                 • DUPNW17909005723 • android-arm64 • Android 8.0.0 (API 26)
        • Android SDK built for x86 • emulator-5554    • android-x86   • Android 8.0.0 (API 26) (emulator)
    
    ! Doctor found issues in 1 category.
  3. saurabh-mhaisekar commented on Dec 11, 2019

    @saurabh-mhaisekar
    Author

    @iapicca Yes, it is working fine after moving to dev branch.

  4. HEMANT96 commented on Apr 22, 2020

    @HEMANT96

    eninov@localhost flash-chat-flutter]$ flutter run
    The current Flutter SDK version is 0.0.0-unknown.

    Because flash_chat depends on cloud_firestore >=0.3.0 which requires Flutter SDK version >=0.1.4 <2.0.0, version solving failed.
    Running "flutter pub get" in flash-chat-flutter...
    pub get failed (1; Because flash_chat depends on cloud_firestore >=0.3.0 which requires
    Flutter SDK version >=0.1.4 <2.0.0, version solving failed.)
    [eninov@localhost flash-chat-flutter]$

  5. deepaknssd commented on Jul 6, 2020

    @deepaknssd

    I am also getting the same error in cloud firestore

  6. removed
    blocked: customer-responseWaiting for customer response, e.g. more information was requested.
    on Jul 8, 2020
  7. locked and limited conversation to collaborators on Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions