React Native 与Facebook进行原生Firebase身份验证,导致应用程序崩溃

ddrv8njm  于 2022-11-25  发布在  React
关注(0)|答案(1)|浏览(125)

在将targetSdkVersion从30升级到31后,我的Facebook身份验证崩溃了应用程序,没有任何可见的错误。
例如,使用Firebase的Google认证工作得很完美。这个问题只出现在使用Facebook认证时。

ext {
    buildToolsVersion = "30.0.2"
    minSdkVersion = 21
    compileSdkVersion = 31
    targetSdkVersion = 31
    ndkVersion = "20.1.5948944"
    fitnessVersion = "20.0.0"
    supportLibVersion = "30.0.0"
    kotlin_version = '1.6.0'
}

Package.json

"dependencies": {
    "@react-native-firebase/app": "^14.1.0",
    "@react-native-firebase/auth": "^14.1.0",
    "@react-native-firebase/messaging": "^14.1.0",
    "react-native-fbsdk-next": "^4.6.0",
    "react": "17.0.1",
    "react-native": "0.64.2",
    ...
}

JDK版本

javac 11.0.15.1
hjzp0vay

hjzp0vay1#

React Nativefbsdk-next必须为5+

"react-native-fbsdk-next": "^5.0.0",

功能:安卓、sdks:使用facebook-android-sdk v12+,目标/编译SDK 31

相关问题