TooManyEduardos
TooManyEduardos

Reputation: 4404

Package cloud_firestore has no versions that match >=0.7.0 <0.8.0 derived from

I'm trying to get the cloud_firestore package, which is required for this flutter tutorial: https://codelabs.developers.google.com/codelabs/flutter-firebase/#7

when I run flutter packages get I only get back: Package cloud_firestore has no versions that match >=0.7.0 <0.8.0 derived from...

The cloud_firestore package says on this website https://github.com/flutter/plugins/tree/master/packages/cloud_firestore that the latest version is 0.7.2 I tried that version as well, but I get the same error.

I've also tried the dev, master and beta channels of flutter, without any success to get this package.

And, here's my pubspec.yaml file:

name: test_app
description: Integrate firebase into flutter
dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^0.1.0
  cloud_firestore: ^0.7.0

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter:
  uses-material-design: true

Any suggestions on what could be going on? Thank you.

Upvotes: 2

Views: 618

Answers (3)

Tyler Biscoe
Tyler Biscoe

Reputation: 2422

There are docs that exist that say to include the following in your pubspec.yaml:

firebase_firestore: ^0.12.7+1

I believe those docs are wrong. It should be cloud_firestore, and the latest package versions can be found here:

https://firebaseopensource.com/projects/flutter/plugins/

Hope this helps someone.

Upvotes: 1

TooManyEduardos
TooManyEduardos

Reputation: 4404

Got it "fixed", although this is not really an answer.

Tried on a second computer, and it kept giving me the same issue.

Tried on the first computer, but at a different location, and flutter packages get works!

So...something in the first network location was blocking the repository?

Anyways, now it works as expected. Sorry, and thank you to everyone who gave me ideas to try!

Upvotes: 1

Mohith7548
Mohith7548

Reputation: 1370

Try without specifying the version just keep "cloud_firestore: ". It will automatically gets the latest version of the package. It's not adviced for production purpose as latest versions are not stable. bUt for testing purspose, it's good

Upvotes: 0

Related Questions