Leem.fin
Leem.fin

Reputation: 42592

use ActionBarSherlock as library in my own project

I am using ActionBarSherlock to implement action bar on my Android 2.1 API 7 project. (With Eclipse IDE)

In order to use sherlock, I imported sherlock library as a existing project on Eclipse. Then, I added it as library on my own project.

However, in my own project, the Eclipse's console shows me the following error:

JakeWharton-ActionBarSherlock-436230d/library/res/values-v11/abs__styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.

JakeWharton-ActionBarSherlock-436230d/library/res/values-v11/abs__styles.xml:48: error: Error: No resource found that matches the given name: attr 'android:actionBarSize'.

JakeWharton-ActionBarSherlock-436230d/library/res/values-v11/abs__styles.xml:49: error: Error: No resource found that matches the given name: attr 'android:actionBarStyle'.

...

Why??

(I have set target SDK to Android 3.2 for Sherlock.)

Upvotes: 3

Views: 2717

Answers (4)

RobGThai
RobGThai

Reputation: 5969

Set target SDK to Android 3.2(Version 14) or above. Your desired version can be anything from Android 1.5 (version 7?) upward if I remember correctly.

Upvotes: 2

Tejaswini
Tejaswini

Reputation: 357

Set in Android-manifest file to target sdk to 14

Upvotes: 0

adneal
adneal

Reputation: 30804

Open the ABS Properties and the change the Project Build Target in the Android tab to 13.

Upvotes: 0

Maria Neumayer
Maria Neumayer

Reputation: 3357

Afaik you have to use the api level 14 (or at least honeycomb) library when using ActionBarSherlock. You can still set the minimum version to 7, but the target version has to be ICS (or maybe honeycomb). But then you have to make sure that you're not using any methods introduced in later versions.

Upvotes: 1

Related Questions