0

I am donwloading ActionbarSherlock from here: http://actionbarsherlock.com/download.html

and when I unzip it, I get a choice of folders: - website - actionbarsherlock-samples - ....

But those are not the options I see in the tutorials where they import a library from this package into an existing project. Could someone please explain which part of this download is meant to be added to an existing project?

Also, from the documentation, I saw that I need to set the minSdk="8" but also in other parts of the documentation I saw that I need to be compiled with API 14. How can that be? Could someone please clarify that point.

Thank you!

Genadinik
  • 18,153
  • 63
  • 185
  • 284

1 Answers1

2

Could someone please explain which part of this download is meant to be added to an existing project?

The actionbarsherlock/ directory within the ZIP file is an Android library project that is ActionBarSherlock itself.

I saw that I need to set the minSdk="8"

8 or higher, yes.

I saw that I need to be compiled with API 14

14 or higher, yes.

How can that be?

The two concepts are largely independent. android:minSdkVersion says how old of an Android device you are willing to support. The build target specifies what version of the Android SDK class library you are compiling against.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • you know, after I added the actionsherlock library to another project, there appeared a red exclamation point next to that project. would you know how to fix that? – Genadinik Jun 03 '13 at 21:17
  • yeah, I recall that having faced this before. But I forgot how to resolve this. Is it a problem with actionbarsherlock library that I added? What should I do to it to fix it? :) – Genadinik Jun 03 '13 at 21:21
  • @Genadinik: Look at the build path of the project with the exclamation mark, and see what errors show up there. – CommonsWare Jun 03 '13 at 21:27
  • @Genadinik: If you are on the R22 tools, try: http://stackoverflow.com/questions/16596969/libraries-do-not-get-added-to-apk-anymore-after-upgrade-to-adt-22/16596990#16596990 – CommonsWare Jun 03 '13 at 21:30
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/31150/discussion-between-genadinik-and-commonsware) – Genadinik Jun 03 '13 at 21:34
  • I looked there and I am not sure if I have r22. But I do see syntax errors in the actionbarsherlock files. – Genadinik Jun 03 '13 at 21:56