gpt4 book ai didi

android - 如何修复错误 app\build\intermediates\res\merged\debug\values-v24\values-v24.xml

转载 作者:IT老高 更新时间:2023-10-28 23:32:51 26 4
gpt4 key购买 nike

我在构建项目时遇到错误。

错误:

Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
C:\Users\MR Maleki\Desktop\WhoIsBetter2\app\build\intermediates\res\merged\debug\values-v24\values-v24.xml
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

分级:

  compileSdkVersion GLOBAL_COMPILE_SDK as int
buildToolsVersion GLOBAL_BUILD_TOOLS

compile fileTree(include: ['*.jar'], dir: 'libs')
//----------------- Android Support Library --------------------------------
compile "com.android.support:appcompat-v7:$GLOBAL_SUPPORT_LIBRARY_VERSION"
compile "com.android.support:design:$GLOBAL_SUPPORT_LIBRARY_VERSION"
compile "com.android.support:gridlayout-v7:$GLOBAL_SUPPORT_LIBRARY_VERSION"
compile "com.android.support:cardview-v7:$GLOBAL_SUPPORT_LIBRARY_VERSION"

我应该如何解决这个错误?你会建议什么来解决这个问题?

最佳答案

这通常发生在您的支持库的主要版本与您的编译 SDK 版本不匹配时。

例如,如果您使用 SDK 版本 24 进行编译,则必须使用版本 24.x.x 的支持库(反之亦然)。

另请参阅:Error retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23

关于android - 如何修复错误 app\build\intermediates\res\merged\debug\values-v24\values-v24.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41365401/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com