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

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

问题描述

我设法很好地重构了我的应用程序,因此,除了派生 Activity 类中的一些方法外,所有内容都在一个库项目中.

它工作得很好,除了 Eclipse 的控制台(不是 LogCat!)发出以下错误消息:

[2011-06-13 19:54:08 - MyLibrary] 找不到 MyLibrary.apk!

我清理了两个项目(库应用程序),重新启动了 Eclipse,重新构建了项目,但是这个奇怪的错误消息仍然存在.

这个错误信息是什么意思?(特别是考虑到一切似乎都运行正常)

我该如何摆脱它?

更新:我尝试删除该项目,然后根据以下建议重新导入它.它没有帮助.然后我找到了!

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.

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!

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)

How do I get rid of it?

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?

解决方案

I found the source of the problem!

It turns out that "with the new library feature, you don't specify the Android projects you depend on in the Java Build Path section of the Properties. You do it in the Android section of the Properties".

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.

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

Thanks to Lance Nanek!

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

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