react-native not running on Android post update

后端 未结 1 1883
小蘑菇
小蘑菇 2021-01-25 21:37

Did a react-native-git-upgrade today. And then I ended up with below errors.

:app:processDebugResources
/../android/app/build/intermediates/res/merged/debug/valu         


        
相关标签:
1条回答
  • 2021-01-25 21:57

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

    You've already linked this above, but don't seem to have indicated that you've tried the solution(s).

    This is an issue with react-native-fbsdk, until they fix it you'll need to do the following:

    android/build.gradle:

    project(':react-native-fbsdk') {
      configurations.all {
        resolutionStrategy {
           force 'com.facebook.android:facebook-android-sdk:4.22.1'
         }
      }
    }
    

    android/app/build.gradle:

    compileSdkVersion 24
    buildToolsVersion "24.0.2"
    

    The above works for our project, please give it a try. You'll of course need the v24 SDK, Build Tools and Support Repository.

    0 讨论(0)
提交回复
热议问题