Gradle问题生成Android应用程序:AAPT:检索项的父项时出错

Gradle问题生成Android应用程序:AAPT:检索项的父项时出错,android,react-native,gradle,Android,React Native,Gradle,我在用React Native构建Android应用程序时遇到问题。我最近在我的应用程序上没有太多变化,但有些东西似乎突然发生了变化,当然是因为我的一个依赖性 当我尝试运行assembleerelease时,我得到以下错误: /root/.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.1.0.aar/9dc7663ea18f37ca9d48501ef1071cf3/res/values-v24/values-v24.xml:3:5-15

我在用React Native构建Android应用程序时遇到问题。我最近在我的应用程序上没有太多变化,但有些东西似乎突然发生了变化,当然是因为我的一个依赖性

当我尝试运行
assembleerelease
时,我得到以下错误:

/root/.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.1.0.aar/9dc7663ea18f37ca9d48501ef1071cf3/res/values-v24/values-v24.xml:3:5-157: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/root/.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.1.0.aar/9dc7663ea18f37ca9d48501ef1071cf3/res/values-v24/values-v24.xml:4:5-135: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

/root/.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.1.0.aar/9dc7663ea18f37ca9d48501ef1071cf3/res/values-v26/values-v26.xml:13:5-16:13: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jail-monkey:verifyReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
然而,当我运行
assembleDebug
时,一切都进展顺利,所以我不确定问题出在哪里

构建运行在没有缓存的linux Docker映像上,该映像具有最新版本的sdk tools 26.1.1

从我在网上看到的,这个问题似乎来自appcompat,它不是正确的版本。而且依赖性似乎有问题,它已经几个月没有收到更新了

在my build.gradle中,这是我的一些依赖项:

implementation project(':react-native-svg')
implementation project(':react-native-config')
implementation project(':jail-monkey')
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.google.android.gms:play-services-base:15.0.0'
implementation 'com.google.android.gms:play-services-base:15.0.0'
implementation 'com.android.support:appcompat-v7:23.0.0'
implementation 'com.facebook.react:react-native:+'
我试着在我的gradle文件中将appcompact-v7设置为23、26、27和28,但都不起作用。尽管在构建过程中,它似乎使用了依赖项中的26.1

compileSdkVersion 27
buildToolsVersion '27.0.3'
你知道我如何解决这个问题吗