在将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
1条答案
按热度按时间hjzp0vay1#
React Nativefbsdk-next必须为5+
功能:安卓、sdks:使用facebook-android-sdk v12+,目标/编译SDK 31