尝试在我的项目中使用最新的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
我使用了ActionBar样式生成器,现在尝试使用我的应用程序,但得到:
错误:检索项目的父项时出错:找不到与给定名称"@ style/Theme.AppCompat.Light.DarkActionBar"匹配的资源.
我在libs文件夹中使用android-support-v7-appcompat.jar lib
我的目标是让我的应用兼容2.3或更高版本
当我看到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)