You have to set the build target to API13 on your own project.
Up vote 2 down vote favorite 1 share g+ share fb share tw.
My own project is using Android 2.1 API 7. To implement action bar, I use ActionBarSherlock library. I imported the sherlock library into my Eclipse as an existing project.
For sherlock, the target platform is Android v3.2 API 13 . Then, I added sherlock as a library project to my own project. Then, I notice there is no R.
Java file under gen/ folder in my own project, and I got error like following in eclipse console: 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'. ... I thought it was probably because of the sherlock should use higher version API, so I tried to set target platform to 4.03 API 15 on sherlock project. But it does not help.
Anyone use sherlock has experienced the same error? How can I solve this problem? P.S. my own project manifest file: android actionbarsherlock link|improve this question edited Feb 7 at 16:04 asked Feb 7 at 15:51Leem.
Fin7668 61% accept rate.
Try setting it's target to level 15 as well – Espiandev Feb 7 at 15:56 @ Espiandev, I don't understand you. What's the point to set my own project to level 15? I mean sherlock is supposed to be used to have native action bar in old version API like my project (API 7), if I set my own project to use API 15, what's the point to have the sherlock library on the earth then?
– Leem. Fin Feb 7 at 16:02.
You have to set the build target to API13 on your own project. The minimum API level your app works on is defined by android:minSdkVersion in your manifest, NOT the build target. Setting the build target to API13 does NOT make the ActionBar available on 2.1 devices, and that is why you have ActionBarSherlock.
– Leem. Fin Feb 7 at 16:21 Yes, your app will still be able to run on 2.1. What version you support from is defined by android:minSdkVersion in your manifest. You should be able to change build target from project properties in Eclipse.
– SimonVT Feb 7 at 16:24.
Both your app and the library need to be compiled with Android 3.2 for proper support. You can set your minSdkVersion in the manifest as low as '4', however, to still support back through Android 1.6. The targetSdkVersion also must be set to '11' or higher. Take a look at the samples in the samples/ folder of the project for an idea of how this is done.
– Leem. Fin Feb 7 at 16:22 Provided the minSdkVersion is '7' or below, yes. – Jake Wharton Feb 7 at 16:24 1 Would be good to mention this on the usage page – David Caunt Feb 7 at 16:34 2 The site is being redone for version 4 over the next two weeks and will have much better and more comprehensive documentation, including key facts like this.
– Jake Wharton Feb 7 at 16:42 That's awesome Jake. ABS 4 already looks incredible! – David Caunt Feb 7 at 16:58.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.