Eclipse 中的 Android 库项目 - Jar 文件未显示在 r14 sdk 工具中

发布于 2024-12-12 08:03:38 字数 517 浏览 0 评论 0原文

我已将 SDK 工具更新至 r14。在 链接告知库项目将在使用库项目的项目中显示为 jar 文件。但 jar 文件没有显示,并且 _src 文件夹仍然可见。从以前的版本迁移到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

〗斷ホ乔殘χμё〖 2024-12-19 08:03:38

我让这个工作。

我重建了库项目,.jar 出现在 bin 文件夹中。然后,我从使用 的项目中删除了引用,并以与以前相同的方式添加了它。

项目属性 -> Android -> 在“库”部分中,我添加了对 的引用,并在当前项目中创建了一个包含 Library Projects >.jar 文件。

幸运的是,我的整个库项目中没有涉及资源 ID 的 switch case 语句。对于那些无法立即使其工作的人,我建议他们浏览我在问题中发布的链接。

I got this to work.

I rebuilt the library project and a <libraryproject>.jar appeared in the bin 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 a Library 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文