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-->如图:
这样就解决问题了。