我收到此错误styles.xml:错误检索父的项目:无资源发现在给定名称匹配 'Theme.AppCompat.Light'
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
<style name="AppTheme" parent="AppBaseTheme"></style>
<style name="AppBaseTheme" parent="Theme.AppCompat.Light"> --->Error line
<item name="colorPrimary">@color/holo_orange</item>
<item name="colorPrimaryDark">@color/holo_orange_dark</item>
</style>
然后右键点击项目 - >属性 - > Android
然后我清单:
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="21" />
.......
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppBaseTheme" >
......
</application>
排序和导出:
我相信我已经在构建工具更新我的SDK 21的最新版本,平台工具,Extras等。我不知道为什么这个错误仍然发生。我试着重新启动我的eclipse并清理项目。它仍然发生。
我想你还需要在项目 –
中添加'appCompat'库让我知道该怎么做? @ρяσѕρєяK – Steve
见[无法找到新的Android ActionBar支持Theme.AppCompat.Light](http://stackoverflow.com/questions/17870881/cant-find-theme-appcompat-light-for-new-android-actionbar - 支持)可能帮助 –