user1517313
user1517313

Reputation:

import ActionBarSherlock to eclipse

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 .

Upvotes: 1

Views: 2570

Answers (1)

user
user

Reputation: 87064

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.

Upvotes: 4

Related Questions