You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[cloud_firestore] Flutter fails to get package cloud_firestore #1604
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:
add Dependancy cloud_firestore ^0.13.0+1 into pubspec.yaml
Run flutter pub get
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.
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
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.
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]$
Activity
iapicca commentedon 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 -vand 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
jpainam commentedon Dec 11, 2019
Hi, I also have the same problem. It happens when I add this dependency
cloud_firestore: ^0.13.0+1to 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 commentedon Dec 11, 2019
@iapicca Yes, it is working fine after moving to dev branch.
HEMANT96 commentedon Apr 22, 2020
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 commentedon Jul 6, 2020
I am also getting the same error in cloud firestore