Skip to content

Firebase Analytics Flutter Example doesn't work #3115

@Dersh

Description

@Dersh

Describe the bug
I have downloaded Flutter Example but failed to build it.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_analytics/firebase_analytics/example
  2. Clone repo for source codes
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked: customer-responseWaiting for customer response, e.g. more information was requested.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions