flutterfire_cli
flutterfire_cli copied to clipboard
[bug]: App does not run after configuration using flutterfire
Is there an existing issue for this?
- [X] I have searched the existing issues.
CLI Version
1.0.0
Firebase Tools version
13.10.2
Flutter Doctor Output
[!] Flutter (Channel stable, 3.22.0, on macOS 14.4.1 23E224 darwin-arm64, locale en-PK)
! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.5.0-155.0.dev/libexec/bin/dart, which is not
inside your current Flutter SDK checkout at /Users/abdulmuezz/Documents/flutter. Consider adding
/Users/abdulmuezz/Documents/flutter/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.89.1)
[✓] Connected device (5 available)
[✓] Network resources
! Doctor found issues in 1 category.
Description
After configuring my app with firebase using flutterfire, I get an error in my app/build.gradle
file
Steps to reproduce
- Run
flutterfire configure --project=my-project
- Run
flutter run
- See error:
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/abdulmuezz/Documents/Projects/iuhabit/android/app/build.gradle' line: 4
* What went wrong:
Plugin [id: 'com.google.gms.google-services'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (None of the included builds contain this plugin)
- Plugin Repositories (plugin dependency must include a version number for this source)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 690ms
Running Gradle task 'assembleDebug'... 1,156ms
Error: Gradle task assembleDebug failed with exit code 1
Expected behavior
The app should run fine as it does if I revert the changes made by the configure command.
Screenshots
This was added by the flutterfire extension:
Additional context and comments
No response