简体   繁体   English

如何将android库项目转换为jar?

[英]How to convert android library project into jar?

I had created an android library project.Now I am looking to distribute my library project as a jar to the 3rd party for the security of my code. 我已经创建了一个android库项目。现在,我希望将我的库项目以jar的形式分发给第三方,以确保代码的安全。 I had searched a lot about how to convert a library project to a jar.But I didn't get the proper solution.So is it possible to convert any library project to jar ?? 我已经搜索了很多有关如何将库项目转换为jar的信息,但是我没有找到合适的解决方案,因此有可能将任何库项目转换为jar吗? How can I convert my library to jar ??? 如何将我的库转换为jar? please help me with steps , thanks in advance :) 请帮助我的步骤,在此先感谢:)

in eclipse select your library project 在Eclipse中选择您的图书馆项目

1:right click on project 2: select export 3:java then jar 1:右键单击项目2:选择导出3:java然后是jar

Select all files, except the AndroidManifest.xml. 选择除AndroidManifest.xml之外的所有文件。

Make sure you DON'T select manifest file. 确保您不选择清单文件。 Else it will lead to conflict errors. 否则会导致冲突错误。

Now include this JAR file in the build path, and it will work. 现在,将这个JAR文件包含在构建路径中,它将起作用。 I did the same. 我也一样

Let me know if you have any issues. 如果您有任何问题,请告诉我。 在此处输入图片说明

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

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