-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
Describe the bug
I have downloaded Flutter Example but failed to build it.
To Reproduce
Steps to reproduce the behavior:
- Go to https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_analytics/firebase_analytics/example
- Clone repo for source codes
- Do flutter pub get in the folder
Expected behavior
Pubs should be updated, the project should build without errors
Flutter doctor
Run flutter doctor
and paste the output below:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.20.0, on Mac OS X 10.15.5 19F101, locale ru-RU)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.47.3)
[✓] Connected device (4 available)
I met 2 issues
#1
[i] flutter pub get
Running "flutter pub get" in i...
Could not find a file named "pubspec.yaml" in "/Users/user/Desktop/cm".
pub get failed (66; Could not find a file named "pubspec.yaml" in "/Users/user/Desktop/cm".)
exit code 66
#2 in main.dart
Undefined name 'Firebase'.
Try correcting the name to one that is defined, or defining the name.dartundefined_identifier