Target of URI doesn't exist problem how to solve?

91 Views Asked by At

Target of URI doesn't exist: 'package:cloud_firestore/cloud_firestore.dart'. Try creating the file referenced by the URI, or try using a URI for a file that does exist.

I installed cloud firestore in pubspec yaml file but I still get this error

1

There are 1 best solutions below

2
Priyanshu Paliwal On

Run flutter clean and then run flutter pub get in the console.

I think this will work.