I’m trying to configure my project with the firebase and i’m getting this error :
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘android’.
Could not resolve all files for configuration ‘:classpath’.
Could not find com.google.gms.google-services:4.3.15:.
Required by:
project :
- 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 7s
Exception: Gradle task assembleDebug failed with exit code 1,
I followed all the steps (gradle fills) , added the the firebase fill and tried everything possible still not working , can anyone help me please ?
even tho i have old project working but the new one not working
I followed the steps of configuring the firebase , my flutter version is the last one even the android studio
2
Answers
Please be sure that the following line :
has been added to the root build.gradle, in the dependencies:
Tip: To properly configure Firebase for Flutter, you can also use flutterfire_cli. You can find more info about it here: https://firebase.google.com/docs/flutter/setup?platform=android
As car_tor mentioned this is the reason but furthermore there is a typo as explained in the post: Error:Could not find com.google.gms: google-services:4.3.15?