[英]How export jar of a android library project in eclipse
How do I export a jar of an Android library project with a resource? 如何导出包含资源的Android库项目的jar?
I tried this: How to create jar for Android Library Project but it doesn't work - I get: resource not found 我尝试了这种方法: 如何为Android库项目创建jar,但是它不起作用-我得到:找不到资源
First you have to import your library project from: 首先,您必须从以下位置导入您的图书馆项目:
File
--> Import
--> Existing code
from the workspace. File
-> Import
->工作区中的Existing code
。
After that for any project for which you want that library: 之后,对于您想要该库的任何项目:
Right Click on your project --> Properties
--> on Left side select Android
. 右键单击项目->
Properties
->左侧,选择Android
。
Then click on the add
button. 然后点击
add
按钮。
Then the list of your library projects will appear. 然后将显示您的图书馆项目列表。
Choose a project from the list and then click on Apply
and then OK
. 从列表中选择一个项目,然后单击“
Apply
,然后OK
。
jar can't contain android resources. jar不能包含android资源。
If you need a library with resources, use it as an android library project. 如果您需要一个具有资源的库,请将其用作android库项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.