Android Launching Error Unable to restore source lookup path - unknown type source container type sp

转自:http://android-know-how-to.blogspot.com/2013/01/android-launching-error.html 由于是fanqiang看的,就粘过来吧


总结起来方法步骤:

1、eclipse里右键菜单重命名出问题的项目

2、eclipse里删除出问题的项目(注意不要勾物理删除啊>_<)

3、手动编辑出问题项目的project文件,将文件名在改回来

4、重新把出问题项目导入eclipse

这看起来是eclipse android插件的一个bug?maybe吧,我是在升级eclipse发行版后出的问题


下面是原文


Android Launching Error

So... I have an Android project in Eclipse, which I haven't touched for a while, and now after a new installation of Eclipse, and other plugin setup, I got the following error while launching the project:
(which used to work 100% of times)

Unable to restore source lookup path - unknown type source container type specified: org.eclipse.cdt.debug.core.containerType.project

This was really frustrating, since I need to deploy a new version for that application, so I've Googled the issue, and found NOTHING...
(I would only expect that much since the scenario to achieve this is quite complicated)

I've tried the standard Eclipse issue solving technics:




You name it, I've tried it.

Last I've noticed that also re-importing the project didn't solve it, I got the idea, that Eclipse has a reference to the project build spec, (from the .project file), referenced by the name of the project, so...
(and this is also the solution :))

  1. I've renamed the project (Added '_' at the end of its name).

  2. Deleted the project from the workspace (Without checking that dangerous check box).

  3. Edited the .project file of the Project, and renamed it back to the original name (Removed that '_').

  4. Re-imported the project into the workspace (Now with the original name).


And that is it...

Just like the lord, Eclipse works in mysterious ways... :)


发表评论

必填

选填

选填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。