ciyo
ciyo

Reputation: 735

Source not Found on Android

Whenever I try to debug my app, Eclipse open a Class File Editor and gives a Source not Found and generally for basic Java classes (For example, Looper.class). I am really sick of this. I cannot debug well because of these Source not Founds. Is there a way to solve this?

Thank you!

Upvotes: 3

Views: 3870

Answers (2)

Ritz
Ritz

Reputation: 1

I assume that in the manifest file you have android:debuggable="true" and Eclipse is able to find the sources. For the Android platform sources, do you have the platform sources downloaded?

Upvotes: -1

HexAndBugs
HexAndBugs

Reputation: 5789

Go to Help > Install new Software... in eclipse and add the update site: http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/

You can then download the android sources.

Update: For more recent versions of Android (API level 14 and up), the Android SDK Manager allows you to download the source for a specific API level. You can do that and then when you get the Source not Found message, you can attach the source by entering the path to downloaded source (which should be in your SDK location).

Upvotes: 2

Related Questions