React Native: error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found

后端 未结 2 382
梦如初夏
梦如初夏 2021-01-01 19:58

I am trying to get Facebook Login for my React Native Android project and when I try to build it with react-native run-android I am getting this error.

I thought at

2条回答
  •  孤城傲影
    2021-01-01 20:47

    Can't remember where I picked this up but if you are feeling reckless you can force libraries onto the same sdk by adding:

    subprojects {
        afterEvaluate {project ->
        // force libs to use recent buildtools
            if (project.hasProperty("android")) {
                android {
                    compileSdkVersion = 27  // change to match your desired version
                    buildToolsVersion = "27.0.3" // ....
                }
            }
        }
    }
    

    to your root android/build.gradle. Hasn't failed me so far after a react-native-git-upgrade. ymmv

提交回复
热议问题