0

Can't run app with this dependancy

implementation 'com.google.firebase:firebase-core:17.2.0'

when i downgrade dependancy to : 16.0.1 it's working but the version :17.2.0 gives me error as given below

Launching lib/main.dart on Android SDK built for x86 in debug mode...

Initializing gradle...

Resolving dependencies...

Running Gradle task 'assembleDebug'...

Finished with error: Gradle task assembleDebug failed with exit code 1
implementation 'com.google.firebase:firebase-core:17.2.0'

dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'

        classpath 'com.google.gms:google-services:4.3.2'
    }

Parth Bhanderi
  • 2,378
  • 3
  • 15
  • 30

1 Answers1

0

You need to update your top-level build.gradle to use the latest version of the google services plugin. It looks like you're using a very old one that still assumes that all the Firebase and Play dependencies must be the same version, which is no longer the case.

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

see Failed to resolve com.google.firebase:firebase-crash:17.0.2

SebastienRieu
  • 1,443
  • 2
  • 10
  • 20