简体   繁体   English

将android包导出到jar

[英]Export android package to jar

I have a problem, I would like to export the package from the android project file. 我有问题,我想从android项目文件中导出包。 Jar and then import it into the project to continue this package meets its functionality? Jar,然后将其导入到项目中,以继续此软件包满足其功能?

You can add one project to another via Project -> Properties -> Java Build path -> Projects -> Add. 您可以通过项目->属性-> Java构建路径->项目->添加,将一个项目添加到另一个项目。

Or you can create JAR of project as mentioned in create a jar file - Dalvik error 或者,您可以按照创建jar文件中所述创建项目的JAR-Dalvik错误

Well, to export a package to a jar, right click on the package then choose the "export" option. 好了,要将包装导出到罐子中,请右键单击包装,然后选择“导出”选项。 Under Java choose JAR file. Java选择JAR文件。 You can choose a target directory at the next screen, for ease of access, I tend to export directly into the libs folder of the other project that will be using this JAR . 您可以在下一个屏幕上选择目标目录,为了易于访问,我倾向于直接导出到将使用此JAR的其他项目的libs文件夹中。 If you export it to the libs folder, right click on the JAR and choose Build Path -> Add to build path . 如果将其导出到libs文件夹,请右键单击JAR并选择Build Path -> Add to build path

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

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