Firebase version conflicts with support library

前端 未结 3 1755
挽巷
挽巷 2021-01-26 02:15

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

相关标签:
3条回答
  • 2021-01-26 02:36

    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.

    0 讨论(0)
  • 2021-01-26 02:39

    override your firebase dependency with

      com.android.support:support-v4:26.1.0
    

    Happy Coding :)

    0 讨论(0)
  • 2021-01-26 02:51

    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

    0 讨论(0)
提交回复
热议问题