error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
来源:互联网 发布:ubuntu查看显卡状态 编辑:程序博客网 时间:2024/04/28 19:16
问题:新建andorid工程中文件styles.xml报错error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
原因:找不到 android-support-v4.jar
android-support-v7-appcompat.jar
解决方法1:为了版本兼容的,你新建项目时最低版本(Minimum Required SDK)选择4.0以上,就不会出现appcompat_v7包,AndroidBarActivity是支持库里的类可以兼容2.x版本 activity提供的actionbar只有在3.0以上才可以用
解决方法2:添加连个库就行了
库路径:sdk\extras\android\support\v7\appcompat\libs
名字:
android-support-v4.jar
android-support-v7-appcompat.jar
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.App
- Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Lig
- Error retrieving parent for item: No resource found that matches the given name 'android:Theme....
- Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Lig
- eerror: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCo
- Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Lig
- Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Lig
- Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Lig
- 解决error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppC
- Error:(9) Error retrieving parent for item: No resource found that matches the given name 'Theme.App
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Ap
- spring4.2 MVC注解备忘
- Codeforces Round #330 (Div. 1) B. Max and Bike
- beautifulsoup抓取 class 关键字
- Android. ImageView with SVG Support
- asp.net堆和栈的对比 #1
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- matlab中bar绘图设置与各种距离度量
- linux性能调优工具perf
- CF 500C New Year Book Reading
- 洛必达法则求极限的本质
- 获取ListView的滚动高度
- iOS 更改textField里placeholder的字体和颜色
- C++类的静态成员详细讲解
- 笔记_Maya绑定基础_修改骨骼的方向