gpt4 book ai didi

android - 找不到与给定名称 : attr 'android:actionModeShareDrawable' 匹配的资源

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:37:03 27 4
gpt4 key购买 nike

我尝试同步 Gradle 的所有内容都会出现此错误。我正在使用 SDK 21,并且安装了所有更新。我尝试删除 Value.xml、清理 Gradle、同步它并尝试更改 SDK 版本。它仍然出现。

这是哪里出了问题

C:\Users\User\AndroidStudioProjects\MyApplication\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v11\values.xml
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.

如果您希望看到该项目,请给我留言。我真的是 android studio 的新手。我也重建了应用程序。

最佳答案

您需要确保将支持库作为依赖项的所有模块也将编译 SDK 设置为 21。因此,转到项目结构并检查左侧的所有模块。

关于android - 找不到与给定名称 : attr 'android:actionModeShareDrawable' 匹配的资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26794797/

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