Skip to content
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

[cloud_firestore] Flutter fails to get package cloud_firestore #1604

Closed
saurabh-mhaisekar opened this issue Dec 11, 2019 · 6 comments
Closed
Labels
type: bug Something isn't working

Comments

@saurabh-mhaisekar
Copy link

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.

@saurabh-mhaisekar saurabh-mhaisekar added the type: bug Something isn't working label Dec 11, 2019
@ghost
Copy link

ghost commented Dec 11, 2019

In your terminal, run

flutter channel dev
flutter upgrade

@iapicca
Copy link

iapicca commented Dec 11, 2019

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

@iapicca iapicca added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Dec 11, 2019
@jpainam
Copy link

jpainam commented Dec 11, 2019

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.

@saurabh-mhaisekar
Copy link
Author

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

@HEMANT96
Copy link

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]$

@deepaknssd
Copy link

I am also getting the same error in cloud firestore

@iapicca iapicca removed the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Jul 8, 2020
@firebase firebase locked and limited conversation to collaborators Aug 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants