You have to attach corresponding source code for your emulator/device
(project's API level is not important when you debugging).
For instance,
- you have project's API level 11 (3.0)
- you debug on emulator targeted on Android 2.3.4 (2.3.3 rev 2 in SDK
Manager; API level 10)

You need attach source for API level 10/Android 2.3.4 (as targeted
device/emulator), not for API level 11

View.performClick in API level 6 is from line 2359 to line 2369.
Because of that, I suppose that your device/emulator contains API
level 6 SDK.
Try attach sources.zip from the com.android.ide.eclipse.source/6/
directory from adt-addons Sources plugin.
You do not have change project's API level, just reatach source by
right-click android.jar in your project. Your device/emulator contains
its android.jar and it isn't related to project's android.jar.

Regards,
Peco


On Aug 3, 10:20 pm, Caleb9 <peter.karasin...@gmail.com> wrote:
> Hello,
> I'm an Android noob, so sorry if this kind of question has already
> been asked million times before, but searching both here and elsewhere
> I couldn't find an answer to my problem.
> It seems to me that my stack trace in Eclipse, while debugging, is
> showing wrong line numbers for Android classes. As an example, the
> stack trace shows "Button(View).performClick() line: 2364", but line
> 2364 of View.java is within initializeScrollbars(TypedArray a) method,
> not performClick(). I've binded the jar file as described 
> onhttp://source.android.com/, then I also tried the adt-addons source
> plugin from code.google.com/p/adt-addons/, with the same result. The
> plugin didn't automatically bind the source .zip files - I had to
> manually add ~/.eclipse/org.eclipse.platform_3.6.1_272132065/plugins/
> com.android.ide.eclipse.source_11.0.0.201106122256/10/sources.zip, and
> I tried debugging with Android  2.1 (for which I initially aimed), as
> well as 2.3.3 (which, as far as I understood, corresponds to "10" in
> the plugin's subdirectory path) but the line numbers seem to be always
> wrong...
> Can someone please give me some hints on what am I doing wrong or
> maybe what did I misunderstand about this?
> Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to