I know this is a common question and I already read several posts and modify many times my gradle file but I can\'t find the solution.
The error message i
change
dependencies{
implementation 'com.google.firebase:firebase-core:16.0.8'
}
dependency in your app gradle from
dependencies{
implementation 'com.google.firebase:firebase-core:15.0.0'
}
and then sync your project with these changes.
override your firebase dependency with
com.android.support:support-v4:26.1.0
Happy Coding :)
Using gradle app:dependencies
, get a list of dependencies:
+--- org.jetbrains.kotlin:kotlin-stdlib-jre7:..
| \--- org.jetbrains.kotlin:kotlin-stdlib:..
| \--- org.jetbrains:annotations:...
+--- com.google.firebase:firebase-core:16....
| +--- com.google.firebase:firebase-analytics:16...
| | +--- com.google.android.gms:play-services-basement:15....
| | | \--- com.android.support:support-v4:26.1.0
| | | +--- com.android.support:support-compat:26.1.0 ->.......
it shows firebase needed com.android.support:support-v4:26.1.0
, so you have to overwritten it
with com.android.support:support-v4:28.0.0