本文介绍了如何修复eror app \ build \ intermediates \ res \ merged \ debug \ values-v24 \ values-v24.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
构建项目时出现错误.
错误:
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"
如何解决此错误?您将建议如何解决该问题?
How should I fix this error? What would you recommend to fix the problem?
推荐答案
当支持库的主要版本与编译SDK版本不匹配时,通常会发生这种情况.
This typically occurs when your support library's major version does not match your compile SDK version.
例如,如果要使用SDK版本24进行编译,则必须使用支持库的版本24.x.x(反之亦然).
For example, if you are compiling with SDK version 24, you must use version 24.x.x of the support library (and vice-versa).
另请参阅:
这篇关于如何修复eror app \ build \ intermediates \ res \ merged \ debug \ values-v24 \ values-v24.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!