Sal-laS
Sal-laS

Reputation: 11659

Android: Actionbarsherlock has not been added as a library

To Make Tab Actionbar, I have added the actionbarsherlock.jar. (I have Downloaded it from here)

Unfortunately With (Right click -> Prpperties -> Java Build Path ), it does not placed in Android Dependency but in the Android Private Libreray.

Now the problem is in:

public class TabNavigationCollapsed extends TabNavigation

the Eclipse does not know the TabNavigation class

What should I do to resolve this issue?

Upvotes: 0

Views: 49

Answers (2)

user3380405
user3380405

Reputation:

You have to add it as existing Android-Project into your Workspace. (NOT as .jar-file) after you added it. you should right-Click on your project -> "Properties "-> "Android" -> click onto "Add..." -> choose the Folder of ActionBarSherlock

After you did this. Right click on actionbarsherlock project -> Properties -> Android -> check the Box "Is Library" -> Apply and Close. (Should be working now)

Upvotes: 0

M Rajoy
M Rajoy

Reputation: 4114

You need to import the whole ABS project into your Eclipse, then in your Project you would add the ABS project as a library under the Android category of your project's preferences.

http://actionbarsherlock.com/usage.html

Upvotes: 1

Related Questions