Peri Hartman
Peri Hartman

Reputation: 19484

android source not matching jar, in eclipse

I'm using Android 4.0.3 (API 15). When I stop in the debugger and step into the source for Android, the source isn't matching - that is, I end up some arbitrary number of lines outside of the function I stepped into. It appears that the SDK manager is downloading a version of source slightly different than the jar.

What am I missing?

One more comment: in the Java Build Path, it automatically adds an entry called "Android 4.0.3" even though I already added "android.jar". Regardless, the source paths are correct.

Upvotes: 0

Views: 214

Answers (1)

Peri Hartman
Peri Hartman

Reputation: 19484

The answer is obvious in retrospect :) The source you use to debug has to match the version on your device, not the minimum version. The trick was getting Eclipse to "let go" of its source setting so I could point it to the correct version.

Upvotes: 2

Related Questions