没有资源的发现,匹配给定的名字:ATTR“机器人:actionModeShareDrawable” [英] No resource found that matches the given name: attr 'android:actionModeShareDrawable'

查看:389
本文介绍了没有资源的发现,匹配给定的名字:ATTR“机器人:actionModeShareDrawable”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一切,我尝试同步摇篮这个错误出现。我使用SDK的21岁,我已经安装了所有的更新。我试图删除Value.xml,清洁的摇篮,同步并试图改变SDK版本。仍然是上来了。

这里是哪里出了问题。

<$p$p><$c$c>C:\Users\User\AndroidStudioProjects\MyApplication\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v11\values.xml 错误:(36 21)否资源发现,匹配给定的名字:ATTR机器人:actionModeShareDrawable。 错误:(36 21)否资源发现,匹配给定的名字:ATTR机器人:actionModeShareDrawable。 错误:(36 21)否资源发现,匹配给定的名字:ATTR机器人:actionModeShareDrawable。 错误:(36 21)否资源发现,匹配给定的名字:ATTR机器人:actionModeShareDrawable。     错误:错误检索父项:未发现的资源匹配给定名称机器人:TextAppearance.Material。 错误:错误检索父项:未发现的资源匹配给定名称机器人:TextAppearance.Material.Body1。 错误:错误检索父项:未发现的资源匹配给定名称机器人:TextAppearance.Material.Body2。 错误:错误检索父项:未发现的资源匹配给定名称机器人:TextAppearance.Material.Button。 错误:错误检索父项:未发现的资源匹配给定名称机器人:TextAppearance.Material.Caption。 错误:错误检索父项:未发现的资源匹配给定名称机器人:TextAppearance.Material.Display1。 错误:错误检索父项:未发现的资源匹配给定名称机器人:TextAppearance.Material.Display2。 错误:错误检索父项:未发现的资源匹配给定名称机器人:TextAppearance.Material.Display3。

如果您希望该项目看给我留言。 我真的新的Andr​​oid工作室。香港专业教育学院重建应用程序还。

解决方案

您需要确保所有的模块都支持库的依赖也已编译的SDK设置为21,所以还是项目结构并检查所有的模块上的左手侧。

Everything i try to sync Gradle this error comes up. I am using SDK 21 and I have all updates installed. I tried deleting the Value.xml, cleaning the Gradle, syncing it and trying to change the SDK version. and still it come up.

here is what goes wrong

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'.

If you would like the project to see give me a message. Im really new to android studio. Ive rebuild the app also.

解决方案

You need to make sure all your modules that have the support library as dependency also have the compile SDK set to 21. So go to Project Structure and check all the modules on the left hand side.

这篇关于没有资源的发现,匹配给定的名字:ATTR“机器人:actionModeShareDrawable”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆