Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/200.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Android appcompat_v7错误_Java_Android_Compiler Errors_Android Appcompat - Fatal编程技术网

Java Android appcompat_v7错误

Java Android appcompat_v7错误,java,android,compiler-errors,android-appcompat,Java,Android,Compiler Errors,Android Appcompat,当我尝试为API级别19、21开发时,出现以下错误 workspace/appcompat_v7/res/values-v21/styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'. workspace/appcompat_v7/res/values-v21/s

当我尝试为API级别19、21开发时,出现以下错误

workspace/appcompat_v7/res/values-v21/styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
workspace/appcompat_v7/res/values-v21/styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
appcompat属性中的API级别设置为19

有什么建议吗


编辑:根据我看到的答案,似乎不可能为API级别19开发。当然不可能是这样的?

您可以在以下线程中找到答案:


您将找到Android Studio和Eclipse的答案

所以这意味着我不能有项目以版本19为目标?我必须始终以21版为目标?这并不意味着。在第一条评论中,它描述了解决这个问题的方法。您正在使用什么ide?我正在使用Eclipse,但链接中的解决方案说,将appcompat和您正在使用的应用程序都更改为API21,不是吗,除非我有误解?您是在创建项目时提到目标api还是在创建项目后更改了目标api以获得更大的api?我删除了appcompat和project,然后将项目创建为minsdk 8、target 19和Compile with 19。然后我得到了很多错误,就像我的后材料中提到的那些不是在19。要获得api 19中的材料,您需要appcompat