今天做了react-native-git-upgrade。然后我最终得到了以下错误。
: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)"
答案 0 :(得分:0)
您已经将上述内容联系起来,但似乎没有表明您已尝试过该解决方案。
这是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,构建工具和支持存储库。