Reputation: 193
please how can i solve this problem Target of URI doesn't exist: 'firebase_options.dart'. Try creating the file referenced by the URI, or Try using a URI for a file that does exist
Upvotes: 9
Views: 10828
Reputation: 1571
You must have your Android aplication ID registered on your Firebase project before setting up Flutter.
Next run
dart pub global activate flutterfire_cli
and
flutterfire configure --project=YOUR-FIREBASE-PROJECT
Upvotes: 0
Reputation: 81
run flutter pub add firebase_core
this is probably because you haven't installed firecore in your project yet
Upvotes: 8
Reputation: 3566
Usually, the firebase_options.dart
file is generated through flutterfire configure
command.
Double check that you generate the file properly with the Flutterfire CLI and that you import it with the right path in your main.dart
(or the file that require it)
Upvotes: 3