eclipse - Android Support-Library -
i've created android app 4.1.2 , want version 2.2.
what use class popupmenu , there no support in 2.2. searched google , found have import android-support-v7-appcompat project eclipse.
in project buchappzweipunktzwei i've set library reference. added support-appcompat.jar build-path in android-support-v7-appcompat project.
i following error:
[2014-03-22 17:10:04 - buchappzweipunktzwei] c:\users\pascal\downloads\adt-bundle-windows-x86_64-20130917\adt-bundle-windows-x86_64-20130917\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:24: error: error retrieving parent item: no resource found matches given name 'android:widget.holo.actionbar'. [2014-03-22 17:10:04 - buchappzweipunktzwei] c:\users\pascal\downloads\adt-bundle-windows-x86_64-20130917\adt-bundle-windows-x86_64-20130917\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:28: error: error retrieving parent item: no resource found matches given name 'android:widget.holo.light.actionbar'. [2014-03-22 17:10:04 - buchappzweipunktzwei] c:\users\pascal\downloads\adt-bundle-windows-x86_64-20130917\adt-bundle-windows-x86_64-20130917\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:32: error: error retrieving parent item: no resource found matches given name 'android:widget.holo.actionbar.solid'.
and on.
can tell me how fix that?
firstly, don't create jar of v7 appcompat project; include project library own project.
secondly, per the documentation on use of v7 appcompat:
note: library depends on v4 support library. if using ant or eclipse, make sure include v4 support library part of library's classpath.
lastly, make sure your application using appcompat theme:
<application ... android:theme="@style/theme.appcompat"> ... </application>
Comments
Post a Comment