Nima Ganji
Nima Ganji

Reputation: 601

Failed to resolve: firebase-crash-15.0.0

I'm trying to connect firebase to my application. I successfully added firebase-core to my build.gradle file and project synced correctly, but when I want to add firebase-crash for crash reporting I got this error: "Failed to resolve: firebase-crash-15.0.0"

my build.gradle (Module) file:

dependencies {
    ...
    implementation 'com.google.firebase:firebase-core:16.0.1'
    implementation 'com.google.firebase:firebase-crash:16.0.1:15.0.0'
...
}

apply plugin: 'com.google.gms.google-services'

I also added classpath 'com.google.gms:google-services:4.2.0' to my build.gradle (Project) too and it synced successfully.

any idea? :|

Upvotes: 0

Views: 353

Answers (2)

Ashutosh Dash
Ashutosh Dash

Reputation: 610

Instead of implementation 'com.google.firebase:firebase-crash:16.0.1:15.0.0' add implementation 'com.google.firebase:firebase-crash:16.0.1'

Upvotes: 0

Son Truong
Son Truong

Reputation: 14183

Problem: This line make your gradle sync failed.

implementation 'com.google.firebase:firebase-crash:16.0.1:15.0.0'

Because there is no version 16.0.1:15.0.0

Solution: If you want to use version 15.0.0

implementation 'com.google.firebase:firebase-crash:15.0.0'

Or using the latest version 16.2.1

implementation 'com.google.firebase:firebase-crash:16.2.1'

You can pick your expectation version here.

Upvotes: 0

Related Questions