use ActionBarSherlock as library in my own project - android

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.)

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.

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.

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

Set in Android-manifest file to target sdk to 14

Related

Compilation error: No resource found that matches the given name 'android:elevation'

Why do I get the following error when trying to build App in Xamarin and how can it be resolved?
No resource found that matches the given name: attr android:elevation
I would also like to mention that the above error has occurred after I wrote the code to add map into my app.
The compileSdkVersion is invalid. A minimum SDK-Version of 21 is required for android:elevation.
Right click on your Android-Project inside Visual Studio and change the selected android-version ("Compile using Android-Version"). Clean your project and build it again. The error should disappear.
If there is no entry for API Level 21 or higher then you have to download the appropriate SDK-Levels in the Android SDK Manager.

Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'

i programed with eclipse but i try make project today that eclipse make errors.
solution that told all is for android studio.
enter image description here
You should change your target sdk version to 23.
Reason : you may be using support design library (v23.z.z) which is dependent on the sdk version 23

Unable to add appcompact v7 library into my project?

I just want to add v7 lib to my existing project in order to add navigation drawer but my whole project gets error and it shows some error in console in the resource of v7 lib(android-support-v7-appcompat\res\values-v23\styles_base_text.xml:19).
android-support-v7-appcompat\res\values-v23\styles_base_text.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
and many more.
I have changed the target version to the higher level (Android 5.1.1 )and i have cleaned the project.Tried many alternative methods coudn't find the possible solution.
In order to use the latest version of appcompat (which you are based on the existence of values-v23), you must set your targetSdkVersion to 23. For future reference, the appcompat version number always needs to be the same as your target SDK.

ActionBarSherlock IcsSpinner in Android 2.2

I tried to implement ActionBarSherlock project into my ohter Android 2.2 project. Only thing i need is to use IcsSpinner and its value of "android:spinnerMode". While importing whole ActionBarSherlock project, I get lot of errors like:
[2013-09-30 09:04:56 - AppGlobal] C:\Users\User\Downloads\ActionBarSherlock-4.0.0\ActionBarSherlock-4.0.0\library\res\values\abs__themes.xml:166: error: Error: No resource found that matches the given name: attr 'android:windowActionModeOverlay'.
anyone faced same problem? I have support library in my app project included, in library project there is used Android 4.0. I get the same problem even when I change Android in AB Sherlock library to 2.2...
Thx
Your Android project and the ABS project both needs to be compiled with an SDK >= 4.0
Go to
Properties > Android > Project build target
and choose an SDK with an API level of at least 14.
See this answer.

ADT returns error when I changed the Project Build Target

I recently changed my Project Build Target from Android 2.3.3 to Google APIs and from this time I get an error from the values-v11 folder which says
error: Error retrieving parent for item: No resource found that
matches the given name 'android:Theme.Holo.Light'.
Maybe I need to remove that folder or there is something else I can do to include this theme in my app
2.3.3 is doesn't have the Holo styles and resources. So, it will give this error.
You have two options:
Remove those styles
Switch to latest SDK
BTW, any specific reason of using build target as 2.3.3? You could have the target set to the latest version, and run your app on 2.3.3 as well.

Categories

Resources