简体   繁体   English

Android:Actionbarsherlock尚未添加为库

[英]Android: Actionbarsherlock has not been added as a library

To Make Tab Actionbar , I have added the actionbarsherlock.jar . 为了制作Tab Actionbar ,我添加了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 . 不幸的是,有了(右键单击-> Prpperties-> Java Build Path),它没有放在Android Dependency中,而是放在Android Private Libreray中

Now the problem is in: 现在问题出在:

public class TabNavigationCollapsed extends TabNavigation

the Eclipse does not know the TabNavigation class Eclipse不知道TabNavigation类

What should I do to resolve this issue? 我应该怎么做才能解决这个问题?

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. 您需要将整个ABS项目导入到Eclipse中,然后在Project中将ABS项目作为库添加到项目首选项的Android类别下。

http://actionbarsherlock.com/usage.html http://actionbarsherlock.com/usage.html

You have to add it as existing Android-Project into your Workspace. (NOT as .jar-file) 您必须将其作为existing Android-Project into your Workspace. (NOT as .jar-file) existing Android-Project into your Workspace. (NOT as .jar-file) after you added it. existing Android-Project into your Workspace. (NOT as .jar-file)添加之后。 you should right-Click on your project -> "Properties "-> "Android" -> click onto "Add..." -> choose the Folder of ActionBarSherlock 您应该在项目上单击鼠标右键->“属性”->“ Android”->单击“添加...”->选择ActionBarSherlock文件夹

After you did this. 完成此操作后。 Right click on actionbarsherlock project -> Properties -> Android -> check the Box "Is Library" -> Apply and Close. 右键单击actionbarsherlock项目->属性-> Android->选中“ Is Library”框->应用并关闭。 (Should be working now) (现在应该工作)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM