1

I want to use ActionBarSherlock and HoloEveryWhere in my Android app

but when I import ActionBarSherlock Library in Eclipse, imported library contains many errors !!!

Library folder screenshot : here (Updated)

Problems screenshot : here

How can I fix it ?


My problem solved :)

I Changed Java compiler level to 1.6 .

peetsnack
  • 91
  • 10

1 Answers1

4

The ActionBarSherlock library must be built against the last version(or 4.0) of Android(and the projects that use the library also have to be built against 4.0 or 4.1). Right click the ActionBarSherlock library project -> Properties -> Android -> Check Android 4.1 -> Ok

More about this can be found on the library's site - > http://actionbarsherlock.com/usage.html

Updated: Another possible reason for the errors is an incorrect compliance level. Right click project -> Properties -> Java Compiler -> Set the compliance level to 1.6

See if this solves the problems.

user
  • 86,916
  • 18
  • 197
  • 190
  • I Check Android 4.1 and some problems solved . but it contain errors yet. I updated screenshots in first post . –  Sep 21 '12 at 09:17
  • @M.jack See my updated answer. If this doesn't solve the errors see what exactly does the error tells you and update the question again. – user Sep 21 '12 at 09:21