Include lib in Eclipse

江枫思渺然 提交于 2019-12-13 03:33:57

问题


I try include ActionBarSherlock in my Project and see red cross opposite the name lib

In project.properties i have next text:

android.library.reference.1=D:\\Android\\work\\actionbarsherlock

In actionbarsherlockproperties CheckBox Is Library cheked.


回答1:


ActionBarSherlock is a library project.

The red x indicates a broken link

I believe you have already downloaded the library project.

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.

Now in your android project

Right click on your project goto properties choose android. Click browse and add and reference the library project.

snaps

Browse to the location where the library pproject is and import the same. Make sure you check copy into work space.

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




回答2:


your project and sherlock library should be in same directory.



来源:https://stackoverflow.com/questions/21261294/include-lib-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!