今天,我遇到了这篇文章中提到的错误: 错误检索项目的父项:找不到与给定名称匹配的资源 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'
有趣的事情(和不同之处)是 - 我们的应用程序已经投入生产 5 个月,到目前为止我们已经制作了数百个构建和 APK。我们一周内没有更改任何代码行(任何库版本都没有),并且构建突然停止工作并出现这个提到的错误。
Execution failed for task ':react-native-fbsdk:processReleaseResources'
X:\app\node_modules\react-native-fbsdk\android\build\intermediates\res\merged\release\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'.
X:\app\node_modules\react-native-fbsdk\android\build\intermediates\res\merged\release\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'.
X:\app\node_modules\react-native-fbsdk\android\build\intermediates\res\merged\release\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'.
X:\app\node_modules\react-native-fbsdk\android\build\intermediates\res\merged\release\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'.
使用这些版本的库(package.json):
...
"react": "15.3.2",
"react-native": "0.37.0",
...
"react-native-fbsdk": "~0.5.0",
...
我们的 build.gradle(不是整体),它一直工作到现在:
compileSdkVersion 24
buildToolsVersion '24.0.3'
defaultConfig {
applicationId "xxx"
minSdkVersion 16
targetSdkVersion 23
versionCode 14
versionName "1.5.3"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
dependencies {
compile project(':react-native-device-info')
compile project(':react-native-maps')
compile project(':realm')
compile project(':react-native-vector-icons')
compile project(':react-native-image-picker')
compile project(':react-native-fs')
compile project(':react-native-share')
compile project(':react-native-push-notification')
compile project(':react-native-fbsdk')
compile('com.google.android.gms:play-services-gcm:9.4.0') {
force = true;
}
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.facebook.react:react-native:+'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.2.3'
compile 'com.fasterxml.jackson.core:jackson-core:2.2.3'
compile 'com.fasterxml.jackson.core:jackson-databind:2.2.3'
}
请问有什么想法吗?