Firebase duplicate classes error after update

前端 未结 2 1096
花落未央
花落未央 2021-01-12 10:45

Everything works with com.google.firebase:firebase-core:16.0.4 version , but there\'s a newer one and when i update it to com.google.firebase:firebase-cor

相关标签:
2条回答
  • 2021-01-12 11:21

    The latest firebase-core is version 16.0.4, you can check the latest version of each dependency in the following link:

    https://firebase.google.com/support/release-notes/android

    0 讨论(0)
  • 2021-01-12 11:36

    Fix: insert this into app/build.gradle

    Applies to react native firebase v25.12.0 so ensure update to this.

    insert into dependencies section

    implementation 'com.google.android.gms:play-services-vision:20.1.1'
    implementation 'com.google.android.gms:play-services-vision-common:19.1.1'
    implementation 'com.google.firebase:firebase-ml-vision-image-label-model:20.0.2'
    implementation 'com.google.android.gms:play-services-vision-face-contour-internal:16.0.3'
    implementation 'com.google.android.gms:play-services-vision-image-labeling-internal:16.0.5'
    implementation 'com.google.android.gms:play-services-vision-image-label:18.0.5'
    implementation 'com.google.firebase:firebase-ml-vision-face-model:20.0.2'
    implementation 'com.google.firebase:firebase-ml-model-interpreter:22.0.4'
    

    ref: https://github.com/invertase/react-native-firebase/commit/dc4f57a952a7076a48a224087c9a8e7cdeaf4afc#diff-8a85188c69631f3ee1d3b09e01cdfcffae515432e9efdfb74683b880a8902172

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