Adding library to project caused errors

283 views
Skip to first unread message

Superroot

unread,
Jul 18, 2011, 12:57:22 PM7/18/11
to ActionBarSherlock
Hello,

i'm trying to add the ActionBarSherlock library to my android
application project.

Defining the library as a library project works perfectly, but when i
add this library to my android application project, i get some errors.

[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:44: error: Error: No resource found
that matches the given name: attr 'android:popupMenuStyle'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:45: error: Error: No resource found
that matches the given name: attr 'android:selectableItemBackground'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:48: error: Error retrieving parent
for item: No resource found that matches the given name 'android:style/
Theme.Holo.Light'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:71: error: Error: No resource found
that matches the given name: attr 'android:actionBarSize'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:72: error: Error: No resource found
that matches the given name: attr 'android:actionBarStyle'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:74: error: Error: No resource found
that matches the given name: attr 'android:actionBarTabBarStyle'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:73: error: Error: No resource found
that matches the given name: attr 'android:actionBarTabStyle'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:75: error: Error: No resource found
that matches the given name: attr 'android:actionBarTabTextStyle'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:76: error: Error: No resource found
that matches the given name: attr 'android:actionButtonStyle'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:77: error: Error: No resource found
that matches the given name: attr 'android:actionDropDownStyle'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:78: error: Error: No resource found
that matches the given name: attr 'android:actionMenuTextAppearance'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:79: error: Error: No resource found
that matches the given name: attr 'android:actionMenuTextColor'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:80: error: Error: No resource found
that matches the given name: attr 'android:actionModeBackground'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:81: error: Error: No resource found
that matches the given name: attr
'android:actionModeCloseButtonStyle'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:82: error: Error: No resource found
that matches the given name: attr 'android:actionModeCloseDrawable'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:83: error: Error: No resource found
that matches the given name: attr 'android:actionModeCopyDrawable'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:84: error: Error: No resource found
that matches the given name: attr 'android:actionModeCutDrawable'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:85: error: Error: No resource found
that matches the given name: attr 'android:actionModePasteDrawable'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:86: error: Error: No resource found
that matches the given name: attr 'android:actionOverflowButtonStyle'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:88: error: Error: No resource found
that matches the given name: attr 'android:popupMenuStyle'.
[2011-07-18 18:48:14 - com.scibli.rss.golem.v2] G:\00 Dropbox\Dropbox
\99 workspace\com.actionbarsherlock\res\values-
v11\actionbarsherlock_themes.xml:89: error: Error: No resource found
that matches the given name: attr 'android:selectableItemBackground'.

Are there any suggestion, what i have to change to get no errors?

Thanks for your library and your support!!!

Best regards,
Superroot

Jake Wharton

unread,
Jul 18, 2011, 12:59:36 PM7/18/11
to actionba...@googlegroups.com
It looks like you are not targetting API level 11, 12 or 13 in your application. In order for the application to use the native action bar when run on Android 3.0+ you must target one of these API levels.

If you are using version 3.0.3 you must target API 13.

Superroot

unread,
Jul 18, 2011, 1:02:49 PM7/18/11
to ActionBarSherlock
My android application project uses this API levels
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="13" />
Reply all
Reply to author
Forward
0 new messages