I am trying to create an Android project that uses the appcompat_v7 library.
To do this, I created my project through Eclipse → New Android Sample Project and added my custom styles.xml, and then added the appcompat_v7 Project library → Properties → Android → Add.
But when I compile my project, I get the following errors in appcompat_v7 / res / values /styles_base.xml:
appcompat_v7/res/values/styles_base.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'. appcompat_v7/res/values/styles_base.xml:84: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'. appcompat_v7/res/values/styles_base.xml:166: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'. appcompat_v7/res/values/styles_base.xml:243: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'. appcompat_v7/res/values/styles_base.xml:261: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base.DropDownItem'. appcompat_v7/res/values/styles_base.xml:319: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'. appcompat_v7/res/values/styles_base.xml:323: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.Base'. appcompat_v7/res/values/styles_base.xml:347: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Base'. appcompat_v7/res/values/styles_base.xml:391: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'. appcompat_v7/res/values/themes_base.xml:189: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Base'.
In my manifest, I declared 14 as my minSdkVersion and 19 as targetSdkVersion:
AndroidManifest.xml:
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19" />
What can I do to fix these errors and build my project?
android coding-style appcompat android-styles android-theme
완벽한 씨 Apr 22 '14 at 10:12 2014-04-22 22:12
source share