error: Error: No resource found that matches the given name: attr 'actionBarTabStyle'.
2015-07-14 12:31
447 查看
android-support-v7-appcompat.zip 下载地址: http://download.csdn.net/detail/u013456370/8897851
在导入谷歌电子市场项目时,程序代码报错,第一次感觉是不是少了jar包,之后又导入:android-support-v7-appcompat.jar,程序代码不报错了,但是:xml文件报错!
res/values/theme.xml文件:主题
解决方案:
首先下载:android-support-v7-appcompat.zip 解压之后把文件导入到eclipse中,之后,点击项目:GooglePlay-->右键:-->properties-->如图:
这样就解决问题了。
android-support-v7-appcompat.zip 下载地址: http://download.csdn.net/detail/u013456370/8897851
在导入谷歌电子市场项目时,程序代码报错,第一次感觉是不是少了jar包,之后又导入:android-support-v7-appcompat.jar,程序代码不报错了,但是:xml文件报错!
res/values/theme.xml文件:主题
<span style="font-family:Courier New;font-size:18px;background-color: rgb(255, 255, 255);"></span><pre class="html" name="code"><?xml version="1.0" encoding="utf-8"?> <resources> <!-- the theme applied to the application or activity --> <style name="CustomActionBarTheme" parent="@style/Theme.AppCompat.Light"> <item name="android:actionBarTabStyle">@style/MyActionBarTabs</item> <!-- Support library compatibility --> <item name="actionBarTabStyle">@style/MyActionBarTabs</item> </style> <!-- ActionBar tabs styles --> <style name="MyActionBarTabs" parent="@style/Widget.AppCompat.ActionBar.TabView"> <!-- tab indicator --> <item name="android:background">@drawable/actionbar_tab_indicator</item> <!-- Support library compatibility --> <item name="background">@drawable/actionbar_tab_indicator</item> </style> </resources>
解决方案:
首先下载:android-support-v7-appcompat.zip 解压之后把文件导入到eclipse中,之后,点击项目:GooglePlay-->右键:-->properties-->如图:
这样就解决问题了。
相关文章推荐
- DFS拓扑排序(算法导论思路)
- 面向对象五大原则_基石_开闭原则
- 登录tomcat 时出现错误:tomcat You are not authorized to view this page
- 自定义组合控件Weight(高仿猫眼底部菜单栏)
- HDU 3315 My Brute(费用流)
- 外排序
- JSON for java入门总结
- java中单利模式
- NUT文件
- 黑马程序员——Day01之Java概述
- 一、动态规划(2)奇怪的电梯
- android使用webview上传文件(支持相册和拍照)
- AOP切面编程
- 利用Thumbnailator生成缩略图
- package-info.java文件分析
- 有序数组合并
- Java面试题全集(上)
- java实现日期拆分的方法
- 中文 iOS/Mac 开发博客列表
- HDU-1147-Pick-up sticks