包括LIB在Eclipse [英] Include lib in Eclipse
问题描述
我尝试包括 ActionBarSherlock
在我的项目,看到了名的lib相反红十字会
I try include ActionBarSherlock
in my Project and see red cross opposite the name lib
在project.properties我旁边的文字:
In project.properties i have next text:
android.library.reference.1 = D:\\\\ \\\\的Android \\\\工作actionbarsherlock
在 actionbarsherlock
属性复选框是库
cheked。
In actionbarsherlock
properties CheckBox Is Library
cheked.
推荐答案
ActionBarSherlock
是一个库项目。
红色的X表示断开链接
我相信你已经下载库项目。
I believe you have already downloaded the library project.
在Eclipse中点击文件,导入,导入现有code到工作区。有相同的复制到工作区中的选项。点击它。点击菲尼什并导入到Eclipse中。
In eclipse click file, import , import existing code into workspace. There is a option to copy the same to workspace. click it. Click Finis and import into eclipse.
现在在你的Android项目
Now in your android project
右键点击您的项目转到属性中进行选择机器人。单击浏览并添加和引用库项目。
Right click on your project goto properties choose android. Click browse and add and reference the library project.
卡扣
浏览到库pproject是位置并导入相同。请务必检查复制到工作空间。
Browse to the location where the library pproject is and import the same. Make sure you check copy into work space.
导入到Eclipse后,您可以验证如果库项目。右键单击转到性能的Android。可以看到的是库检查指示其库项目
After importing into eclipse you can verify if its a library project. Right click goto properties android. You can see is library checked indicating its a library project
然后引用该库的项目,你可以看到绿色的勾如下
Then you reference the library project and you can see the green tick as below
这篇关于包括LIB在Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!