ll com.android.support libraries must use the exact same version
specification (mixing versions can lead to runtime crashes). Found versions 28.0.0-alpha1, 26.1.0. Examples include com.android.support:animated-vector-drawable:28.0.0-alpha1 and com.android.support:customtabs:26.1.0 less... (Ctrl+F1) There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion).
my gradle dependencies:-
implementation 'com.google.firebase:firebase-ads:15.0.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
warning on this dependencies -----------------------------
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
testImplementation 'junit:junit:4.12'
implementation 'com.google.android.gms:play-services-vision:15.0.2'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.3.+'
implementation 'com.memetix:microsoft-translator-java-api:0.6.2'
implementation 'com.google.firebase:firebase-crash:16.0.1'
implementation 'com.facebook.android:audience-network-sdk:4.+'
>
Something's using older library and The culprit is firebase-core:16~;
After quite some trials I resolved this issue.
From this answere and this answer I solved the error.
You need to manually add dependencies that are conflicting. (To find conflicting dependencies an easy way is to hover over highlighted errors.) You can either downgrade your appcompat library to the given/hinted one which is not recommended or manually declare those dependicies.
I Used this code with all updated libraries today and solved errors:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
//this thing is carusing error, to solve - see hints and manually add them.
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.android.support:support-media-compat:28.0.0-rc01'
implementation 'com.android.support:support-v4:28.0.0-rc01'
//implementation 'com.android.support:appcompat-v7:25.2.0'
/*implementation ("com.google.firebase:firebase-core:16.0.1"){
exclude group: 'com.android.support'
}
*/
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'
}
Such behavior makes new developers head scratch.
If this solves your problem please let others know too. Happy coding.
Update.
Note: Don't forget to check if there's other libraries added to your project causing warning.
Proof of its working.
Use this dependencie
implementation 'com.android.support:appcompat-v7:27.1.1'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With