Eclipse 中的 Android 库项目 - Jar 文件未显示在 r14 sdk 工具中
我已将 SDK 工具更新至 r14。在 此链接告知库项目将在使用库项目的项目中显示为 jar
文件。但 jar
文件没有显示,并且
文件夹仍然可见。从以前的版本迁移到 r14 时,是否需要遵循/更改任何特定的步骤/设置,以便将库项目作为 jar 文件包含在内?我应该首先将库项目导出为 jar
文件,然后包含它吗?我想知道是否有人这样做过以及他们是如何做到的?
I have updated my SDK tools to r14. In this link it is told that the library projects will show up as jar
files in the projects which uses the library project. But the jar
files are not showing up and the <libraryproject>_src
folder is still visible. While migrating to r14 from previous version is there any specific step/settings that I need to follow/change so that the library projects are included as jar files? Should I first export the library project as jar
file and then include it? I would like to know if anyone has done this and how they have done it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我让这个工作。
我重建了库项目,
.jar
出现在bin
文件夹中。然后,我从使用
的项目中删除了引用,并以与以前相同的方式添加了它。项目属性 -> Android -> 在“库”部分中,我添加了对.jar
文件。
的引用,并在当前项目中创建了一个包含Library Projects
>幸运的是,我的整个库项目中没有涉及资源 ID 的 switch case 语句。对于那些无法立即使其工作的人,我建议他们浏览我在问题中发布的链接。
I got this to work.
I rebuilt the library project and a
<libraryproject>.jar
appeared in thebin
folder. Then I removed the reference from the project which uses the<libraryproject>
and added it in the same way as before.Project properties -> Android ->
in the Library section I added the reference to the<libraryproject>
and it created aLibrary Projects
in the current project containing the<libraryproject>.jar
file.Fortunately, there was no switch case statements involving the resouce IDs in my entire library projects. For those of you who is not able to get it to work right away, I would suggest them to go through the link I have posted in the Question.