找不到****。​​APK +的android找不到、APK、android

2023-09-13 01:52:56 作者:梨窝浅笑

每当我试图运行我的项目,我得到了控制台此错误。 找不到的 * 的*。APK

Whenever i am trying to run my project, i am getting this error in the console. "Could not find **.apk"

操作系统:Windows XP

Operating system: windows XP

IDE:Eclipse的SDK 版本:3.4.2 建立ID:M20090211-1700

IDE: Eclipse SDK Version: 3.4.2 Build id: M20090211-1700

Android版本:1.6

Android: 1.6

ADT:ADT 10.0.0

ADT: ADT 10.0.0

仅供参考:它只是发生与单个项目外,其他项目均运行良好。

FYI: it is only happening with a single project, other projects are running fine..

推荐答案

我认为当你从依赖项目下重命名库项目出来会发生这种情况。 Eclipse是一个相当不错的约有关更新在大多数情况下,依赖关系,但是这一次似乎是脆弱的。

I think this can happen when you rename the library project out from underneath the dependent project. Eclipse is reasonably good about about updating dependencies in most cases but this one seems fragile.

首先尝试删除,然后重新添加您的项目库>属性>安卓>库。

First try removing and then re-adding your library in Project > Properties > Android > Library.

如果不工作,请尝试清洁您的项目,退出Eclipse中,并在项目的根目录下打开的.classpath文件。如果你看到一个引用下previous名库项目的线路,只需将其删除,保存文件,并重新启动Eclipse的。构建库项目,然后你的依赖之一。您可能需要重新添加库就像我上面提到的。这是为我工作至少。

If that doesn't work try cleaning your projects, exiting Eclipse, and opening the ".classpath" file in your project's root directory. If you see a line that references your library project under a previous name, just delete it, save the file, and relaunch Eclipse. Build the library project and then your dependent one. You may need to re-add the library like I mentioned above. This is what worked for me at least.

编辑注:我也发现了我的.project文件的一些陈旧的参考。他们似乎并没有被引起任何问题,但我把他们赶走了。如果你这样做,一定要寻找旧名在该文件中,因为是底部附近一个整体链接部分还引用它。

Edit note: I also found some stale references in my .project files. They didn't seem to be causing any problems but I removed them too. If you do that, be sure to search for the old name in that file as there was a whole "link" section near the bottom that also referenced it.

 
精彩推荐
图片推荐