Skip to content

Firebase Analytics Flutter Example doesn't work #3115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Dersh opened this issue Aug 6, 2020 · 4 comments
Closed

Firebase Analytics Flutter Example doesn't work #3115

Dersh opened this issue Aug 6, 2020 · 4 comments
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested.

Comments

@Dersh
Copy link

Dersh commented Aug 6, 2020

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

@darshankawar
Copy link

Hi @Dersh,
I tried to replicate the issue you mentioned, but I was able to run firebase_analytics example properly without any issues.
I am on latest Stable (1.20.1).

I cloned the flutterfire repo and then opened the specific package example firebase_analytics as flutterfire -> packages ->firebase_analytics ->firebase_analytics -> example.

Screen Shot 2020-08-07 at 4 41 28 PM
Screen Shot 2020-08-07 at 4 41 39 PM

@darshankawar darshankawar added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Aug 7, 2020
@sudiptachatterjee
Copy link

I've run into a similar problem. I went to flutterfire/packages/firebase_auth/firebase_auth/example and ran flutter pub get. I got this as the output:

Because every version of firebase_dynamic_links from path depends on firebase_core from hosted and firebase_auth_example depends on firebase_core from path, firebase_dynamic_links from path is forbidden.
So, because firebase_auth_example depends on firebase_dynamic_links from path, version solving failed.
Running "flutter pub get" in example...
pub get failed (1; So, because firebase_auth_example depends on firebase_dynamic_links from path, version solving
failed.)

@paapu88
Copy link

paapu88 commented Aug 23, 2020

I made a new issue, with the same contents as @sudiptachatterjee at #3300
(because it is about firebase_auth, not about firebase_analytics as here.)

@Salakar
Copy link
Member

Salakar commented Aug 23, 2020

Closing in favor of #3300.

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".)

This seems to indicate an issue outside of this library also.

@Salakar Salakar closed this as completed Aug 23, 2020
@firebase firebase locked and limited conversation to collaborators Sep 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested.
Projects
None yet
Development

No branches or pull requests

5 participants