All firebase libraries must be either above or below 14.0.0

后端 未结 10 576
孤街浪徒
孤街浪徒 2021-01-03 18:48

I have checked my app build.gradle file and these are the only lines that are related to firebase in them

/***
 * Firebase
 */
implementation \'com.google.f         


        
相关标签:
10条回答
  • 2021-01-03 19:11

    While Changing google or firebase dependency version make sure you update the compatible version in project level gradle too.

    0 讨论(0)
  • 2021-01-03 19:15

    I have not found the question yet in your question But if you want the latest version of Firebys offices This is compatible with version 27.0.3

    //Firebase
    implementation 'com.google.firebase:firebase-database:11.8.0'
    implementation 'com.google.firebase:firebase-storage:11.8.0'
    implementation 'com.google.firebase:firebase-auth:11.8.0'
    implementation 'com.firebaseui:firebase-ui-database:2.0.1'
    implementation 'com.google.firebase:firebase-messaging:11.8.0'
    implementation 'com.google.firebase:firebase-core:11.8.0'
    
    0 讨论(0)
  • 2021-01-03 19:20

    Change to this work for me:

    implementation 'com.firebase:geofire-android:2.1.2'
    implementation 'com.google.android.gms:play-services:12.0.1'
    implementation 'com.google.firebase:firebase-core:12.0.1'
    implementation 'com.google.firebase:firebase-database:12.0.1'
    implementation 'com.google.firebase:firebase-messaging:12.0.1'
    implementation 'com.google.firebase:firebase-core:12.0.1'
    implementation 'com.google.firebase:firebase-auth:12.0.1'
    

    Try to find anything above 14.0.0 like:

    implementation 'com.google.android.gms:play-services-location:15.0.0'
    

    and try to change it to older version like

    implementation 'com.google.android.gms:play-services-location:12.0.1'
    
    0 讨论(0)
  • 2021-01-03 19:21

    I had same issue and changing the versions solved it:

    compile 'com.google.android.gms:play-services-location:16.0.0'
    compile 'com.google.firebase:firebase-core:16.0.5'
    compile 'com.google.firebase:firebase-appindexing:16.0.2'
    compile 'com.google.android.gms:play-services-maps:16.0.1'
    compile 'com.google.android.gms:play-services-places:16.0.1'
    compile 'com.google.android.gms:play-services-location:16.0.0'
    compile 'com.google.firebase:firebase-auth:16.0.5'
    compile 'com.google.firebase:firebase-database:16.0.5'
    compile 'com.firebaseui:firebase-ui-database:1.0.1'
    compile 'com.google.firebase:firebase-storage:16.0.5'
    compile 'com.google.firebase:firebase-messaging:17.3.4'
    

    Hope this helps

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