Skip to content Skip to sidebar Skip to footer

Activity.class - Class File Editor: The Jar File C:\sdk\platforms\android-17\android.jar Has No Source Attachment

For some reason a new tab opens in my debugger titled: Activity.class with a header stating: Class File Editor and the error stating: The JAR file c:\sdk\platforms\android-17\andro

Solution 1:

Try following

Step 1 : Go to the adroid-sdk install folder.Make sure you have a folder android-17, at android-sdk/sources/

Step 2 : Now go to Class File Editor tab. There you will see a button with label 'Attach source code'. Click it and get the option to select an external folder. And browse till you reach above mentioned android-17 folder. Select it. It will attach the source code.

Step 3 : Now refresh the project.

Step 4 : Now again check the source code of Activity by ctrl+click.

That's it, now you can see the source code for Activity.

UPDATE:

Refer attach android source

Solution 2:

I am not sure about the easiest way to attach the correct Android source, but the reason eclipse tries to open Activity.class is probably that some exception occurred.

Take a look at logcat. You should be able to see a stack trace there and find the reason without even needing the Android source code.

Solution 3:

This is happening because you're reaching the end of the method onCreate. Control is then returning to the Activity class which called your onCreate method. If you're trying to debug something later in your application, you should set the break point later in your code. However, once you reach the end of your onCreate method, there's really nothing left for you to debug. If you wish to debug the actual Android Activity class, you'll need to download the source and tell eclipse where to find it, although I suspect that's not what you want to do.

Post a Comment for "Activity.class - Class File Editor: The Jar File C:\sdk\platforms\android-17\android.jar Has No Source Attachment"