【发布时间】:2012-05-03 20:34:06
【问题描述】:
您好,我在 Eclipse 环境中开发的项目运行良好,我想将该项目用作资源或将其作为 jar 文件添加到另一个项目。如果可能,请告诉我如何执行此操作。对我有很大帮助。
【问题讨论】:
您好,我在 Eclipse 环境中开发的项目运行良好,我想将该项目用作资源或将其作为 jar 文件添加到另一个项目。如果可能,请告诉我如何执行此操作。对我有很大帮助。
【问题讨论】:
您可以通过 Android 库项目来完成。
请参阅此LINK。 描述如何将项目设置为库项目。引自其内容
=================quoted =================== 接下来,设置项目的Properties以表明它是一个图书馆项目:
1) In the Package Explorer, right-click the library project and select Properties.
2) In the Properties window, select the "Android" properties group at left and locate the Library properties at right.
3) Select the "is Library" checkbox and click Apply.
4) Click OK to close the Properties window.
=============== 未引用 =============================
因此,您打开您的项目属性并“取消选择”“是库”复选框并单击应用以使您的项目成为普通的 Android 项目(不是库项目)。
【讨论】:
理论上你可以像@Agarwal 描述的那样。
但是 adt-tools 还没有准备好这样做
我最后一次失败的尝试是在 how-to-consume-reusable-gui-element-widget-with-resources-in-android 记录的 adt-tools 版本 R17
根据用户@CommonsWare R18 和R19 仍然无法做到(见comment in replace-android-library-project-by-jar-library)
【讨论】: