Android Community
Results 1 to 4 of 4

Thread: Debugging my first app: "No source found"

  1. #1
    Join Date
    Feb 2009
    Posts
    19

    Default Debugging my first app: "No source found"


    Hello,

    Here is my application code fragment (developed on a Win32 platform):

    Code:
    @Override
    public void onCreate(Bundle savedInstanceState)     
    {
        I   super.onCreate(savedInstanceState);
            setContentView(R.layout.main);  
            
            // Count number of lines in dictionary file
            String dictName = "dictionary.txt";
            String dirName = "H:\\Test";
        B  File dictPath = new File( dirName, dictName);
    
    I set the breakpoint to the line indicated "B", and then start the debugger. The debugger perspective is displayed and it indicates that the current instruction pointer is pointing to the line indicated "I". I press F8 to resume the program, and a second window appears with "Souce not found", and "Enter source lookup path". I checked that the path correctly points to where my java source code is located.

    Searching here, it seems to imply that the Android source code is not available. Why would I need source code in this case?

    I repeated the test, and this time single stepped from the first line indicated "I". This time, the message appeared after the second line with setContentView().

    I repeated the test on Linux, and I get identical behaviour.

    Can anyone help?

    Thanks,
    Paul

  2. #2
    Join Date
    Feb 2009
    Posts
    17

    Default Re: Debugging my first app: "No source found"

    I assume you are using elipse? when you set up elipse did you set your android sdk path correctly? I think it's complaining that it can't find your sdk, not the android kernel source. Make sure you followed all the steps setting up your sdk.

  3. #3
    Join Date
    Feb 2009
    Posts
    19

    Default Re: Debugging my first app: "No source found"

    Thanks, you're right, I found it also.

    Paul

  4. #4
    Join Date
    Sep 2008
    Location
    The Boonies of Pinal County, Arizona
    Posts
    1,186

    Default Re: Debugging my first app: "No source found"


    Also note that the "H" drive does not exist in Android (or any Unix, for that matter).

Similar Threads

  1. [I am stuck] "error: device not found"
    By John777 in forum General Phone Chat
    Replies: 12
    Last Post: 08-27-2010, 11:47 PM
  2. Help! No "Found New Hardware Wizard!"
    By missxoash in forum General Phone Chat
    Replies: 8
    Last Post: 01-02-2009, 08:41 AM
  3. AC Forums on G1: Recurring "Page Not Found"
    By tiki in forum General HTC Chat
    Replies: 5
    Last Post: 11-03-2008, 09:11 PM
  4. "404 | Page Not Found!" on the forums.
    By outsider in forum Off-topic
    Replies: 4
    Last Post: 10-30-2008, 03:15 PM
  5. Replies: 2
    Last Post: 10-26-2008, 02:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •