fluttergoogle-cloud-firestoregeofirestore

Target of URI doesn't exist: 'package:geoflutterfire/geoflutterfire.dart'


enter image description hereI'm not succeeding to import these two packages in my flutter app, im using Android Studio. I get these messages errors::

Target of URI doesn't exist: 'package:geoflutterfire/geoflutterfire.dart'.

Target of URI doesn't exist: 'package:cloud_firestore/cloud_firestore.dart'.

This is how i edited my pubspec.yaml file:::

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.2
  location: ^4.4.0
  geolocator: ^9.0.2
  geocoding: ^2.1.0
  permission_handler: ^8.0.0+1
  firebase_core: ^2.10.0
  firebase_database: ^10.1.0
  cloud_firestore_platform_interface: ^5.12.0
  cloud_firestore_web: ^3.4.0
  collection: ^1.0.0
  meta: ^1.3.0
  geoflutterfire: 3.0.3
  cloud_firestore: ^3.1.6

After that i exceuted the command : flutter pub get.


Solution

  • You might not have tried

    flutter pub get