Eclipse的ADT无法设置条件断点SDK来源:缺少Java项目背景 [英] Eclipse ADT cannot set conditional breakpoint on SDK sources: missing java Project context
问题描述
我试图调试一个简单的Android应用程序与Eclipse 3.7.1。我attachted Android SDK的来源,所以我可以通过SDK还的code步骤。我可以设置的SDK code,但没有条件断点无条件的断点。我收到以下错误消息,如果我尝试:
I am trying to debug a simple Android app with Eclipse 3.7.1. I attachted the Android SDK sources so I can step through the code of the SDK also. I can set unconditional breakpoints on code of the SDK but not conditional breakpoints. I get the following error message if I try:
条件断点错误
条件断点有编译错误(S)。
Conditional breakpoint has compilation error(s).
原因:
无法编译条件断点 - 缺少Java项目背景
Unable to compile conditional breakpoint - missing java Project context
对自己的工作资源条件断点,但是。
Conditional breakpoints on by own sources work, however.
这是我发现暗示的话题href=\"http://www.eclipse.org/forums/index.php/m/684459/\" rel=\"nofollow\">只有相关的搜索结果中的
The only relevant search result on the topic I found suggests to convert the project containing the third party jar into a Java project. But I do not know how to do this for the Android SDK, i.e. how to add it as an Eclipse project at all. (Would that be even sensible?)
推荐答案
要修正此错误,请为您的项目采用了Android库一个新的Java项目。链接由SDK到该项目交付的Android库的来源。排除一切(*),否则警告和错误消息将淹没你的日志!来自新项目的附加源$ C $ C到«的android.jar»您的项目使用。这就是它。
To fix this error, create a new Java project for the Android library your project uses. Link the sources of the Android library delivered by the SDK to that project. Exclude everything (*), otherwise warning and error messages will flood your log! Attach the source code from that new project to the «android.jar» your project uses. That's it.
我写了一步一步的解决方案这里
I wrote a more step-by-step solution here.
这篇关于Eclipse的ADT无法设置条件断点SDK来源:缺少Java项目背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!