CLI Problems - firebase - flutter

I am trying to connect firebase to android studio and keep getting errors. The firebase_core and firebase_auth are already installed but when I try to configure CLI and enter flutterfire configure then this error occurs.
What is git? what does he want me to do?
CLI has already been updated three times, why does it say it would be the wrong version? If more info is needed please let me know and don't just close the question.
enter image description here

Related

Mobile app crash after flutter update. What to do?

After a recent flutter update, my app stopped working. Throws out from the mobile application. Can you help me? I have got this error:
adb: failed to install /Users/User/Desktop/project/build/app/outputs/flutter-apk/app.apk: Failure[INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.package.name: signatures do not match previously installed version; ignoring!]
Before that everything worked. I don't know what to do, please help. The command adb uninstall <package_name> won't help. The project is already on Google Play
I tried reinstalling. Install the original version of the mobile application. update all dependencies, but nothing helped
that's because it's different from the previous version you can see in a similar case here

Dart_LoadScriptFromKernel: The binary program does not contain 'main'. when I run flutterfire configure

I've been looking for a solution to this problem and I can't find it anywhere.
I'm trying to install Firebase and every time I do the flutterfire configure command it pops up Dart_LoadScriptFromKernel: The binary program does not contain 'main'.
I've already done the flutter Clear command, flutter upgrade, installed and uninstalled the dart and flutter plugins. flutter doctor is ok.
I moved the project folder into other place.
Both in Android Studio and in VSCode I can run the app normally.
Thanks for help!

How do I get flutterfire configure command to work?

I'm developing in flutter and am trying to add firebase to my flutter project.
Firebase login works, auth works, dart pub global activate flutterfire_cli works and flutterfire. I can call on firebase or flutterfire and it will list the options I have so I know the paths and installs are working.
But when I run flutterfire configure I always get this:
'''
flutterfire configure
i Found 0 Firebase projects.
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
COMMAND: firebase --version
ERROR: The FlutterFire CLI currently requires the official Firebase CLI to also be installed, see https://firebase.google.com/docs/cli#install_the_firebase_cli for how to install it.
'''
I've been struggling with this for a few days now and have tried firebase binary, npm, nodejs, and anything else I can find. Nothing seems to be working.
Thanks ahead of time!
Lance
I had the same issue some months Ago. This happens when you have ever initialise firebase on that project, be it for hosting , cloud function e.t.c.
Here is what you should do.
Firstly
Carefully delete files and folders relating to firebase-tools on that project (.firebase , firebase.json , .firebaserc ,functions(if available) and firebase_options.dart (if available));
You can then run your
dart pub global activate flutterfire_cli
flutterfire configure
then incase the you are using flutter web and you care to deploy on firebase hosting
You can now your
firebase init;
note:- firebase init; should on be done after
flutterfire configure
I had the same problem, I had to do the following commands in my project directory for it to work:
export PATH="$PATH":"$HOME/.pub-cache/bin"
dart pub global activate flutterfire_cli
flutterfire configure --project=project_name-genereted_firebaseapp_number

Problem the install package flutter_map in the vscode and android studio

I get the following error when adding a package flutter map I do not know where the problem comes from ???
image log
enter image description here
I think you're an Iranian flutter developer
Always remember that you should have a good vpn
You can try proton vpn/Windscribe
After turning your vpn on try:
flutter clean
flutter pub get
You have to add the package in pubspec.yaml file and press on pub-get to download and configure the package with your project.
But first of all, if you don't have the google services at your country, you have to connect via VPN to be able to work.

I have installed flutter SDK but i am recieving this error

I have installed flutter SDK and extracted it in my C Drive and I even created ENVIRONMENT VARIABLES of both flutter and git but when I run command FLUTTER DOCTOR I am receiving this error can anyone help me please
Seems like a needed program called "where" is missing, but a batch file is trying to run it. That's all I know, sorry.