<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="Theme.">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
</resources>
//上面是我的第一个Style.xml //
<resources>
<!--
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
-->
<style name="AppBaseTheme" parent="Theme.Holo.Light.DarkActionBar">
<!-- API 11 theme customizations can go here. -->
</style>
</resources>
//上面是我的第二个Style.xml //
<resources>
<!--
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
-->
<style name="AppBaseTheme" parent="Theme.Holo.Light.DarkActionBar">
<!-- API 14 theme customizations can go here. -->
</style>
</resources>
//上面是我的第三个Style.xml //
我在以上三种风格中出错。我得到的错误是我在下面提到的。
Description Resource Path Location Type
ERROR
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Holo.Light.DarkActionBar'. styles.xml /CricketApp/res/values line 7 Android AAPT Problem
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Holo.Light.DarkActionBar'. styles.xml /CricketApp/res/values-v14 line 8 Android AAPT Problem
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Holo.Light.DarkActionBar'. styles.xml /CricketApp/res/values-v11 line 7 Android AAPT Problem
答案 0 :(得分:0)
添加appcompact_v7 lib或使用android资源中的样式