导入Android自带Sample工程出错解决(Error retrieving parent for item)
来源:互联网 发布:咨询公司 创业 知乎 编辑:程序博客网 时间:2024/05/10 14:24
1. 问题提出
在学习Android编程的时候,发现导入的Android的sample工程出现如下错误:
[2015-09-12 15:20:03 - MainActivity] D:\Program Files (x86)\Android\android-sdk\samples\android-15\ActionBarCompat\res\values-v11\styles.xml:26: error: Error: No resource found that matches the given name: attr 'android:titleTextStyle'.
2.问题分析
经过翻阅网络,对比自己的工程,发现导入的工程SDK用的是 android-10,即android 2.3.3; 而导入的工程显然是android-15目录下的sample,也即SDK应该是android 4.0.3;
3.问题解决
右键悬在刚刚导入的工程--> 属性--->选择“Android”-->选择“android 4.0.3”--》确定
4.总结
希望这个记录对遇到此问题的兄弟有所帮助。呵呵,做程序多年,不善于写博客,这样不好,老是看别人分享的东西,显得自私O(∩_∩)O。今后有空要多在csdn留点足迹。感谢!
0 0
- 导入Android自带Sample工程出错解决(Error retrieving parent for item)
- android导入工程时style出错Error retrieving parent for item: No resource found that matches the given name '
- Android Studio:Error retrieving parent for item...
- Android应用出错 error: Error retrieving parent for item: No resource found that matches the
- Android应用出错 error: Error retrieving parent for item: No resource found that matches the
- Android应用出错 error: Error retrieving parent for item: No resource found that matches .....
- Android应用出错 error: Error retrieving parent for item: No resource found that matches the
- 解决error: Error retrieving parent for item: No resource found that matches the given name 'android:
- Android Stdio编译错误“Error retrieving parent for item: ”
- Android 应用出错 error: Error retrieving parent for item: No resource found that matches the的第二种情况
- Android 应用出错 error: Error retrieving parent for item: No resource found that matches the的第二种情况
- Android应用出错 error: Error retrieving parent for item: No resource found that matches the given name
- 解决Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android
- 解决error: Error retrieving parent for item: No resource found that matches the given name 'AppCompat'
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Wind
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Them
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Win
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Wind
- html table td 中 使用相对定位(relative)和绝对定位(absolute)的div
- Unity5 新功能解析--物理渲染与standard shader
- 做自己的软件的Gallery(一)
- 重定向和转发有什么区别
- Zigbee | Ember | polling 机制与协调器管理子节点
- 导入Android自带Sample工程出错解决(Error retrieving parent for item)
- Scala学习笔记-搭建开发环境
- c++ 玩转 vector容器 用法
- 哪款Linux发行版是你的最佳选择呢?
- C++虚析构函数、纯虚析构函数
- 全排列
- lintcode-单词搜索-123
- 在Spring、Hibernate中使用Ehcache缓存--Ehcache 整合Spring 使用页面、对象缓存
- Python安装