Darshit Anjaria
Darshit Anjaria

Reputation: 101

Android studio Firebase dependency is not compatible with appcompat

I'm trying to add firebase-auth:15.0.0 dependency to my project with appcompat-v7:27.0.0 but it causes a warning that "mixing versions can lead to runtime crashes". I also tried to add new updated dependency of firebase-auth:15.1.0 but it causes the same issue.

Here is my dependencies block

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:27.1.0'
    implementation 'com.google.firebase:firebase-auth:15.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

Upvotes: 2

Views: 1400

Answers (3)

umekalu
umekalu

Reputation: 307

The error is been fixed here on this video https://youtu.be/Vjy_uv10t30

Or

add this //noinspection GradleCompatible

before

implementation 'com.android.support:appcompat-v7:28.0.0'

and synch.

That's all.

Upvotes: 0

Jude Fernandes
Jude Fernandes

Reputation: 7517

Try this

implementation('com.google.android.gms:play-services-ads:15.0.1') {
    exclude group: "com.android.support"
}

Upvotes: 0

CEO tech4lifeapps
CEO tech4lifeapps

Reputation: 895

You cannot upgrade to Version 27.1.0 as long as you are using libraries that run on lower versions. In your case, you simply have to "give in" and go for Version 26.1.0 (the lowest common denominator). You may upgrade to Version 27.1.0 once all libraries have been upgraded to 27.1.0.

Please try

implementation 'com.android.support:appcompat-v7:26.1.0'

Upvotes: 1

Related Questions