相关疑难解决方法(0)

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

尝试在我的项目中使用最新的appcompat-v7支持库时,出现以下错误:

/Users/greg/dev/mobile/android_project/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'.
Run Code Online (Sandbox Code Playgroud)

我该如何解决?

android gradle xamarin.android android-support-library android-5.0-lollipop

374
推荐指数
6
解决办法
38万
查看次数

找不到资源 - Theme.AppCompat.Light.DarkActionBar

我使用了ActionBar样式生成器,现在尝试使用我的应用程序,但得到:

错误:检索项目的父项时出错:找不到与给定名称"@ style/Theme.AppCompat.Light.DarkActionBar"匹配的资源.

我在libs文件夹中使用android-support-v7-appcompat.jar lib

我的目标是让我的应用兼容2.3或更高版本

android android-actionbar-compat

140
推荐指数
7
解决办法
33万
查看次数

Android .xml文件:为什么预定义的颜色对我不起作用?

当我看到misc.Android的教程和例子,当涉及到指定的颜色我经常看到这样的常数@color/red@color/black使用等.出于一些奇怪的原因,永远不会为我工作!我总是需要使用"#RGB",#ARGB,...,#AARRGGBB表示法指定颜色.

很快,当我尝试使用任何这些助记符常量,例如"@ color/red"时,我收到如下错误消息:

[...] C:\Users\mmo\Test\res\drawable\edit_text.xml:5: error: Error: No resource found that matches the given name (at 'drawable' with value '@color/orange').
[...] C:\Users\mmo\Test\res\drawable\myDrawable.xml:3: error: Error: No resource found that matches the given name (at 'drawable' with value '@color/black').
[...] C:\Users\mmo\Test\res\drawable\myDrawable.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@color/black').
[...] C:\Users\mmo\Test\res\drawable\myDrawable.xml:5: error: Error: No resource found that matches the given name (at 'drawable' with value '@color/green').
[...] C:\Users\mmo\Test\res\drawable\myDrawable.xml:6: error: Error: No …
Run Code Online (Sandbox Code Playgroud)

android

29
推荐指数
4
解决办法
5万
查看次数