No resource found that matches the given name 'android:Widget.Material.ActionButton'.
Eclipse 下搭建Android 开发环境(环境搭建参考:点击打开链接)
搭建完成后,新一个Andoroid 项目,出现如下错误:
[2014-11-19 14:16:34 - appcompat_v7] WARNING: unable to write jarlist cache file D:\My java Projects\appcompat_v7\bin\jarlist.cache
[2014-11-19 14:16:34 - appcompat_v7] WARNING: unable to write jarlist cache file D:\My java Projects\appcompat_v7\bin\jarlist.cache
[2014-11-19 14:16:36 - HelloAndroid] D:\My java Projects\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'.
[2014-11-19 14:16:36 - HelloAndroid]
[2014-11-19 14:16:36 - HelloAndroid] D:\My java Projects\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'.
[2014-11-19 14:16:36 - HelloAndroid]
[2014-11-19 14:16:36 - HelloAndroid] D:\My java Projects\appcompat_v7\res\values-v21\styles_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
[2014-11-19 14:16:36 - HelloAndroid]
[2014-11-19 14:16:36 - HelloAndroid] D:\My java Projects\appcompat_v7\res\values-v21\styles_base.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
[2014-11-19 14:16:36 - HelloAndroid]
[2014-11-19 14:16:36 - HelloAndroid] D:\My java Projects\appcompat_v7\res\values-v21\styles_base.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
原因:新建项目时,minSdkVersion相应的Android x.x(API)本地sdk中不存在。
解决方法 一:启动Android SDK Manager(如下图所示) ,更新sdk,将所需Android x.x(API xx)安装到本地即可。
(PS:建议把最常用的Android版本都下载到本地)
解决方法二:修改AndroidMenifest.xml文件,将minSDKVersion更改为本sdk中已有的android x.x(API xx).
这样会降低Android程序兼容的版本。
所以建议使用第一种方法,即更新sdk.
No resource found that matches the given name 'android:Widget.Material.ActionButton'.相关推荐
- No resource found that matches the given name 'android:Widget.Material.A解决方案
1:首先新建空白工作区 2:先import appcompat_v7 appcompat_v7在一个类似这样的地方, C:\mywork\android\android-sdk-windows\ext ...
- No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Invers
1.错误log E:\Learn\apidemo\ApiDemos\testsource\build\intermediates\res\merged\debug\values-v23\values- ...
- No resource found that matches the given name ‘android.TextAppearance.Materia...
问题原因出在Gradle里面 android {compileSdkVersion = 23targetSdkVersion = 22minSdkVersion = 17buildToolsVersi ...
- 解决Android中No resource found that matches android:TextAppearance.Material.Widget.Button.Inverse问题
如果在刚够构建Android Studio项目的时候,运行发现,出现没找到资源的错误!找不到com.android.support/appcompat-v7/23.0.1/res/values-v23 ...
- 解决Android中No resource found that matches android:TextAppearance.Material.Widget.Button.Inverse问题...
如果在刚够构建Android Studio项目的时候,运行发现,出现没找到资源的错误!找不到com.android.support/appcompat-v7/23.0.1/res/values-v23 ...
- Android中No resource found that matches android:TextAppearance.Material.Widget.Button.Inverse问题
Android中No resource found that matches android:TextAppearance.Material.Widget.Button.Inverse问题 这是API ...
- [android] No resource found that matches the given name 'Theme.AppCompat.Light'
在整合android过程中导入别人的项目出现下面的错误: <style name="AppBaseTheme" parent="Theme.AppC ...
- 【Android】No resource found that matches the given name 'Theme.Sherlock.Light.NoActionBar'
被这个问题困扰了好久-- 错误如下: error: Error retrieving parent for item: No resource found that matches the given ...
- 图片资源添加出现问题: No resource found that matches the given name
今天必须要吐槽一下了,折磨了人接近两天啊,多亏了技术主管(大力感谢王公子啊)! 有一个项目是将eclipse里面开发完毕的软件移植到项目中,在Eclipse中编译通过了,移植到项目过程中发现编译出现下 ...
最新文章
- 分享9个提高代码运行效率的小技巧
- nethogs监控linux流量
- 分享:嵌入式Linux入门学习指导
- java mongodb drivers 2升级到3_JAVA从头开始一基础梳理(3-2)
- html侧滑菜单mui,mui侧滑菜单点击含有mui-action-menu类的控件无法实现侧滑
- python在工厂中的应用_python中的工厂方法
- 微信小程序实现文字跑马灯
- Linux下通配符总结
- (c语言)将一个数组逆序输出
- 常用方法总结--文件操作篇
- Linux: 查看网络流量
- Python学习:round函数,截取小数位数
- Java Word Tearing(字分裂)
- 习题11-8 单链表结点删除
- 手机游戏制作(开发流程)
- Labview-将控件嵌入表格教程1
- Java基础之面向对象的概念 继承---组合----枚举类
- ZZNUOJ_C语言1088:手机短号 (多实例)(完整代码)
- Cygwin、Msys、MinGW、Msys2的区别与联系
- linux下/proc/sysrq-trigger详解