Skip to content
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

How can I solve this #19

Open
protyayrd opened this issue Nov 5, 2022 · 2 comments
Open

How can I solve this #19

protyayrd opened this issue Nov 5, 2022 · 2 comments

Comments

@protyayrd
Copy link

Help please
lib/analytics/analytics_service.dart:4:37: Error: Couldn't find constructor 'FirebaseAnalytics'.
final FirebaseAnalytics analytics = FirebaseAnalytics();

@sarthaknerd
Copy link

check Firebase Analytics package is properly installed and imported in your project

@KanyantaM
Copy link

The correct line should be:
final FirebaseAnalytics analytics = FirebaseAnalytics.instance;

That should solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants