a.snss
a.snss

Reputation: 193

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

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

Answers (4)

MarkWalczak
MarkWalczak

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

Abdhameed
Abdhameed

Reputation: 1

run pub add firebase_core it will work

Upvotes: 0

dahighest
dahighest

Reputation: 81

run flutter pub add firebase_core this is probably because you haven't installed firecore in your project yet

Upvotes: 8

BLKKKBVSIK
BLKKKBVSIK

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

Related Questions