如何使用正确的Android支持库,因为我在清单文件中有这样的错误:
Theme.AppCompat.Light.DarkActionBar - 无资源发现
android:theme="@style/Theme.AppCompat.Light.DarkActionBar"
error: Error: No resource found that matches the given name
(at 'theme' with value '@style/Theme.AppCompat.Light.DarkActionBar').
AndroidManifest.xml /ttab line 39 Android AAPT Problem
我的朋友没有这种以前实现我另一台计算机上,现在我必须单独做这件事。请帮我:)
我使用ADT
我styles.xml:
<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="android:Theme.Light">
<!--
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>
<style name="Theme.AppCompat.Light">
<!-- theme customizations here. -->
</style>
<style name="Theme.AppCompat.Light.DarkActionBar" parent="Theme.AppCompat.Light">
<!-- theme customizations here. -->
</style>
</resources>
在eclipse中导入AppCompat库项目(支持lib v7)。 看到这个 - http://developer.android.com/tools/support-library/index.html – Varun
我做到了这一点,但问题还没有解决 – Jerry
你是否已经将appcompat项目添加为应用程序中的库项目? – Varun