9

I have just started doing Android development on Mac OS X in Eclipse. When debugging an Activity, I keep getting the following errors:

The JAR file /platforms/android-10/android.jar has no source attachment.

This is starting to get very annoying, does it mean something is throwing an exception somewhere? (the message itself does not give any meaningful information as to why this is happening) I do not want to step into the source; does Eclipse do this by default? How do I disable it?

inazaruk
  • 74,247
  • 24
  • 188
  • 156
martijn_himself
  • 1,560
  • 3
  • 18
  • 34

1 Answers1

5

It looks like you have some error in your application. And Android subsystem throws exception. Normally, if such exception originates from android, you'll see this behavior.

What you should do:

  1. Turn on LogCat view to see logs.
  2. Launch your app without debugger (Ctrl+F11 on ubuntu/windows)
  3. Inspect those logs in LogCat very carefully. They will contain the place where exception happened (originating from your code). You will then easily be able to fix the issue yourself (or ask for more assistance if needed).

In a normal development workflow you shouldn't hit cases like yours too often. Its just the learning curve :) So stay calm and keep learning.

inazaruk
  • 74,247
  • 24
  • 188
  • 156
  • Thank you very much, upvoted and accepted. I inspected LogCat, it turns out I was missing a Class, as per: http://stackoverflow.com/questions/6107062/google-api-java-client-nethttptransport-causes-noclassdeffounderror – martijn_himself Jun 03 '11 at 16:21