react-native-fbsdk error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'

前端 未结 2 1182
栀梦
栀梦 2020-11-28 13:39

In my react-native project in android/app/build.gradle i have

...
compileSdkVersion 26
    buildToolsVersion \"26.0.1\"

    defaultConfig {         


        
2条回答
  •  北海茫月
    2020-11-28 14:39

    you go to YOUR_PROJECT/node_modules/react-native-fbsdk/android/build.gradle

    looking for line 19:

    dependencies {
        compile 'com.android.support:appcompat-v7:25.0.0'
        compile 'com.facebook.react:react-native:+' // support react-native-v0.22-rc+
        compile('com.facebook.android:facebook-android-sdk:4.+')
    }
    

    change compile('com.facebook.android:facebook-android-sdk:4+') to compile('com.facebook.android:facebook-android-sdk:4.28.0')

    It work for me

提交回复
热议问题