Làm thế nào để sử dụng đúng cách Thư viện hỗ trợ Android, vì tôi có lỗi này trong file manifest của tôi:
Theme.AppCompat.Light.DarkActionBar - Không tìm thấy tài nguyên
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
Bạn tôi đã thực hiện này đối với tôi trước đó trên máy tính khác , bây giờ tôi phải làm điều này một mình. Xin hãy giúp tôi :)
Tôi đang sử dụng ADT
styles.xml của tôi:
<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>
Nhập dự án Thư viện AppCompat (hỗ trợ lib v7) vào nhật thực của bạn. Xem phần này - http://developer.android.com/tools/support-library/index.html – Varun
tôi đã làm điều này trước đây, nhưng vấn đề chưa được giải quyết – Jerry
Bạn đã thêm dự án appcompat làm dự án thư viện trong ứng dụng của mình chưa ? – Varun