skip to Main Content

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.

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


  1. Please be sure that the following line :

    classpath 'com.google.gms:google-services:4.3.15'
    

    has been added to the root build.gradle, in the dependencies:

    dependencies {
        // Other classpath
        classpath 'com.google.gms:google-services:4.3.15'
        // Other classpath
    }
    

    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

    Login or Signup to reply.
  2. 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?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search