Eclipse ADT cannot set conditional breakpoint for SDK sources: java missing Project context

I am trying to debug a simple android application with Eclipse 3.7.1. I have connected the Android SDK sources so that I can also execute the SDK code. I can set unconditional breakpoints on the SDK, but not conditional breakpoints. When trying to do the following:

Breakpoint conditional error

A conditional breakpoint has a compilation error.

Cause:

Unable to compile conditional breakpoint - missing java Project context

Conditional breakpoints from our own sources work, however.

only the relevant search result for a topic found offers to convert a project containing a 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 in general. (Would that even be reasonable?)

+3
source share
1 answer

To fix this error, create a new Java project for the Android library that your project uses. Link the Android library sources supplied by the SDK to this project. Exclude everything (*), otherwise warnings and error messages suggest your log! Attach the source code for this new project to the "android.jar" that your project uses. What is it.

I wrote a more step-by-step solution here .

+4

All Articles