Facebook Account Kit Collision with Google play services gradle

前端 未结 4 1502
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-04 14:00

After configuring account kit sdk as

  compile \'com.facebook.android:account-kit-sdk:4.+\'

and gradle sync it conflict with com.goo

4条回答
  •  情歌与酒
    2021-01-04 14:58

    To fix this you can do something like the following

    compile ('com.facebook.android:account-kit-sdk:4.27.0') {
            exclude group: 'com.google.android.gms', module: 'play-services-auth-api-phone'
            exclude group: 'com.google.android.gms', module: 'play-services-auth'
        }
        compile 'com.google.android.gms:play-services-auth:11.6.0'
        compile 'com.google.firebase:firebase-messaging:11.6.0'
    

    That would remove the stale support gms library from Facebook's SDK and then swap in the same version of the lib that Firebase is using.

提交回复
热议问题