无法调试库项目与ADT V14 - 源未找到 [英] Unable to Debug Library Projects with ADT v14 - Source Not Found

查看:86
本文介绍了无法调试库项目与ADT V14 - 源未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从升级我目前的项目使用新工具的R14在Eclipse中,现在我不能调试任何code存在于我的图书馆项目。

Ever since upgrading my current projects to use the new R14 Tools in Eclipse, I'm now unable to debug any code that exists in my library projects.

当我打我的库项目code一个破发点,而不是Eclipse中打开原始的源文件,它开辟了包含与该消息的JAR中源文件的只读副本源未找到

When I hit a break point in my library project code, instead of Eclipse opening the original source file, it opens up the read-only copy of the source file contained within the JAR with the message "Source not found".

我已经搜索绕了解决办法,但还没有遇到任何事情。有没有其他人有什么建议?这是一个相当痛苦不能够调试。

I've searched around for a solution to this, but have yet to come across anything. Does anybody else have any suggestions? It's quite a pain not being able to debug.

修改

这个问题已经回来了,我不能再调试。我并没有改变周围的任何项目设置或任何东西。非常令人沮丧的。

The issue has came back and I'm no longer able to debug. I haven't changed any project settings around or anything. Very frustrating.

推荐答案

有这个问题,以及和做了一些研究之后,我发现这个线程和另一条放倒我。我拉我的头发了。

After having this issue as well and doing a little research, I came across this thread and another one that tipped me off. I was pulling my hair out already.

事实证明,问题是你的项目(我的是反正)的构建顺序。由于ADT / SDK V14改变库项目中引用的方式,生成顺序必须是正确的。确保所有应用程序使用的初建库。我刚搬到源和根文件夹,我的每个项目的底部,现在它建立图书馆第一,我能够调试并查看我的库文件的源通过主项目。

It turns out that the problem is with the build order of your projects (mine was anyway). Since ADT/SDK v14 changed the way library projects are referenced, the build order needs to be correct. Make sure all of the libraries your app uses are built first. I just moved the "src" and "gen" folders for each of my projects to the bottom and now it builds the library first and I am able to debug it and view the source of my library files through the main project.

在万一有人不知道要做到这一点,在Eclipse中,右键点击你的项目,构建路径,然后单击配置构建路径。于是,排序和导出选项卡上,将两个文件夹为您的项目下面的库列表的底部。我这样做是为我所有的项目和库项目。

In case someone doesn't know where to do this, in Eclipse, right click on your project and "Build Path" and then click "Configure Build Path". Then, on the "Order and Export" tab, move the two folders for your project to the bottom of the list below your libraries. I did this for all of my projects and the library projects.

您可以在全球做到在Eclipse从Windows - > preferences->常规 - > Workspace->构建顺序和移动你的库项目顶端。我觉得在每一个项目中定义的构建顺序将覆盖这虽然,所以你可能要做到这一点在这两个地方现在要解决这个问题,并为未来的项目。

You can also do it globally in Eclipse from Windows->Preferences->General->Workspace->Build Order and moving your library projects to the top. I think the build order defined in each project will override this though, so you may want to do it in both places to solve the issue now and for future projects.

我希望这有助于你和其他人遇到这个恼人的问题。 :)

I hope this is helpful to you and anyone else experiencing this annoying issue. :)

谢谢, 埃德

这篇关于无法调试库项目与ADT V14 - 源未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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