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

后端 未结 2 359
梦如初夏
梦如初夏 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:34

    build.gradle -- Project level inside ---> allprojects add subprojects

    allprojects {
        repositories {
            mavenLocal()
            maven {
                // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
                url("$rootDir/../node_modules/react-native/android")
            }
            maven {
                // Android JSC is installed from npm
                url("$rootDir/../node_modules/jsc-android/dist")
    
            }
    
    
            google()
            jcenter()
        }
    
           //Add subprojects
    
        subprojects {
            afterEvaluate {
                project ->
                    if (project.hasProperty("android")) {
                        android {
                            compileSdkVersion = 28
                            buildToolsVersion = "28.0.3"
                        }
                    }
            }
        }  
    

    }

提交回复
热议问题