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

前端 未结 2 1181
栀梦
栀梦 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:23

    Go to React-Native Project : android/build.gradle file and restrict fbsdk Version to 4.28.0.

    allprojects {
        repositories {
            ...
            configurations.all {
                resolutionStrategy {
                    force 'com.facebook.android:facebook-android-sdk:4.28.0'
                }
            }
        }
    }
    

    If you have another error like below:

    Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'`.

    You can try:

    allprojects {
        repositories {
            ...
            configurations.all {
                resolutionStrategy {
                    force 'com.facebook.android:facebook-android-sdk:4.22.1'
                }
            }
        }
    }
    

    Source: rafaesc

提交回复
热议问题