Replies: 2 comments 1 reply
-
I don't know this would help but I just followed the instructions like:
The following is my vs code internal Powershell terminal.
Package Name Current Upgradable Resolvable Latest dev_dependencies: 1 dependency is constrained to a version that is older than a resolvable version. Package Name Current Upgradable Resolvable Latest dev_dependencies: 1 dependency is constrained to a version that is older than a resolvable version.
Changed 1 constraint in pubspec.yaml:
Package flutterfire_cli is currently active at version 1.0.0.
Computing fixes in notetakingapp (dry run)... 1 proposed fix in 1 file. unused_import • 1 fix To fix an individual diagnostic, run one of: To fix all diagnostics, run: lib\main.dart 1 fix made in 1 file. Learn more about using this file and next steps from the documentation:
Please enable Developer Mode in your system settings. Run
PS G:\Flutter\Flutter Projects\FlutterXFirebase\notetakingapp> Run
PS G:\Flutter\Flutter Projects\FlutterXFirebase\notetakingapp> flutter pub add firebase_core Package Name Current Upgradable Resolvable Latest direct dependencies: all up-to-date. dev_dependencies: all up-to-date. |
Beta Was this translation helpful? Give feedback.
-
if possible try running the commands in the terminal in order once , let me know if it got fixed |
Beta Was this translation helpful? Give feedback.
-
I have Firebase setup working, logged in, CLI is setup and working. The only thing that is giving me an error is: 'package:firebase_core/firebase_core.dart' Target of URI doesn't exist error (red squiggly line).
The dependency seems to be correct. I have tried every possible solution I could find on SO, Google, etc. Tried every chatGPT recommendation. Just cannot get the dependency to work.
Here is my pubspec.yaml:
Here is my main.dart:
Here are a few things I tried:
-flutter clean
-flutter pub get
-flutter channel (on stable) everything is latest version
-restart IDE and restart
-Windows Environment variables (Path) to Flutter and Dart setup.
I've been stuck on this error for the past 3 days. Any suggestions?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions