反应不在Android Post Update上运行



今天进行了反应式升级。然后我遇到了以下错误。

:app:processDebugResources
/../android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
/../app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
/../android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
/../app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

这里已经讨论过的建议

任何帮助将不胜感激。我的build.gradle

compileSdkVersion 23
buildToolsVersion "23.0.1"

compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.android:facebook-android-sdk:[4,5)"

在此处:错误检索项目的错误:找不到与给定名称'android'android:textappearance.material.widget.button.button.colored.colored'的资源'。

您已经在上面链接了这一点,但似乎并未表示您已经尝试了解决方案。

这是react-native-fbsdk的问题,直到他们修复它,您需要执行以下操作:

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"

上述项目适用于我们的项目,请尝试一下。您当然需要V24 SDK,构建工具和支持存储库。

相关内容

最新更新