2

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'
}
Edric
  • 24,639
  • 13
  • 81
  • 91
Darshit Anjaria
  • 91
  • 2
  • 10
  • Possible duplicate of [Compilation failed to complete:Program type already present: com.google.android.gms.internal.measurement.zzabn](https://stackoverflow.com/questions/50149266/compilation-failed-to-completeprogram-type-already-present-com-google-android) – Peter Haddad May 10 '18 at 13:06
  • Take a look [here](https://stackoverflow.com/questions/50254283/com-android-supportsupport-v427-1-1-and-com-firebaseuifirebase-ui-auth3-2/50254704#50254704). – Alex Mamo May 10 '18 at 13:10
  • Can you post the exact warning? – Gabriele Mariotti May 10 '18 at 13:17

3 Answers3

1

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'
CEO tech4lifeapps
  • 885
  • 1
  • 12
  • 31
0

Try this

implementation('com.google.android.gms:play-services-ads:15.0.1') {
    exclude group: "com.android.support"
}
Jude Fernandes
  • 7,437
  • 11
  • 53
  • 90
0

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.

umekalu
  • 169
  • 1
  • 5
  • 1
    Please don't post links only. Always sumarize the most important parts so that your answer is also useful in case the link target is not available anymore. – quant Nov 09 '18 at 12:35