Q) Is there an existing issue for this?
I have searched the existing issues.
Q) Which plugins are affected?
Other
Q) Which platforms are affected?
Android, iOS, macOS, Web, Windows
Description
When running the flutterfire configure command to set up Firebase for a Flutter project, the process fails with a PathNotFoundException error. The error indicates that the build.gradle file in the [android] directory cannot be found. This issue occurs even though the Firebase configuration for Android, iOS, macOS, web, and Windows platforms is successfully registered.
Reproducing the issue
flutter create example
cd example
dart pub global activate flutterfire_cli
flutterfire configure
Firebase Core version
3.9.0
Flutter Version
3.28.0-2.0.pre.38577 • channel master
Tried to downgrade the flutter sdk version but it is a bad idea
3
Answers
I just changed the channel to stable and it works :)
Try resting the config path and it should refresh and resolve the issue.
If not create empty file at the path or check for permissions
Install or update the FlutterFire CLI:
you have to first login firebase from you console.
You can see the steps from here