找不到Library.apk! [英] Could not find Library.apk!

查看:252
本文介绍了找不到Library.apk!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设法很好地调整我的应用程序pretty的,这样,除了几个方法在派生类的活动,一切都在图书馆项目。

I managed to restructure my application pretty nicely so that, except for a few methods in a derived Activity class, everything is in a Library Project.

这工作很漂亮,但Eclipse的控制台发出以下错误消息(不可以 LogCat中!):

It works beautifully, except that Eclipse's Console (not LogCat!) issues the following error message:

[2011-06-13 19:54:08 - MyLibrary] Could not find MyLibrary.apk!

我清理这两个项目(库的的应用程序),重新启动Eclipse中,重新修建的项目,但这个奇怪的错误信息仍然存在。

I cleaned both projects (library and application), restarted Eclipse, re-built the projects, but this weird error message persists.

这是什么错误信息是什么意思? (尤其是在这一切似乎运行正常)

What does this error message mean? (especially in light that everything seems to be running OK)

我如何摆脱它?

更新:我试图消除项目,然后重新导入元以下的建议吧。它并没有帮助。后来我发现<一href="http://stackoverflow.com/questions/1389435/how-to-use-my-custom-library-apk-file-in-other-applications/1389505#1389505">this螺纹,帮助我意识到,我有&LT;使用库&gt;在应用程序的Andr​​oidManifest.xml中提及MyLibrary的。我删除了它,清洁工程和重建​​。该问题仍然存在。

UPDATE: I tried removing the project then re-importing it per the suggestion below. It didn't help. I then found this thread that helped me realize that I had <uses-library> in the application's AndroidManifest.xml referring to MyLibrary. I deleted it, cleaned the project and rebuilt. The problem persists.

我现在怀疑这是真正的问题,如:一些路​​径错误配置或在我的部分东西。可能是什么?

I am now suspecting this is "real problem", e.g. misconfiguration of some paths or something else on my part. What could it be?

推荐答案

我找到了问题的根源!

事实证明的与新的库功能,你不指定取决于属性的Java构建路径部分Android的项目,你在属性

因此​​,所有我必须做的就是去申请项目的属性,按项目设置页,选择我自己库项目,然后单击删除按钮。而已。没有更多的问题。

So all I had to do is go the Application Project's Properties, hit the Projects tab, select my own library project and click the Remove button. That's it. No more problem.

在Eclipse中的Java EE选择项目属性,然后选择项目参考,然后检查FacebookSDK(见截屏)

In Eclipse Java EE select the project Properties, then select Project References, then check the FacebookSDK (see screen capture)

由于兰斯Nanek

这篇关于找不到Library.apk!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆