1. Check out our companion app, Forums for Android! Download from Google Play

"source not found" debug error - yes I downloaded the source code.

Discussion in 'Application Development' started by CuddleBunny, Aug 27, 2010.

  1. CuddleBunny

    CuddleBunny New Member
    Thread Starter

    Aug 27, 2010
    I'm getting an error in my Android app that says "source not found" and crashes the program. I've already read a number of posts saying that the solution is to download the android source code and load that up in Eclipse, but I tried to no avail.

    Here is a bunch of information that may help with my problem, let me know if you need more!

    Thread [<1> main] (Suspended (exception RuntimeException))
    ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2663
    ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2679
    ActivityThread.access$2300(ActivityThread, ActivityThread$ActivityRecord, Intent) line: 125
    ActivityThread$H.handleMessage(Message) line: 2033
    ActivityThread$H(Handler).dispatchMessage(Message) line: 99
    Looper.loop() line: 123
    ActivityThread.main(String[]) line: 4627
    Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
    Method.invoke(Object, Object...) line: 521
    ZygoteInit$MethodAndArgsCaller.run() line: 868
    ZygoteInit.main(String[]) line: 626
    NativeStart.main(String[]) line: not available [native method]

    Edit: Is is weird that the first entry is 'ActivityThrea d' with the 'd' cut off? If this is the problem, what went wrong and how do I fix it?

    The line of code the debug stops on:

    public void AddAnimationID(String index, Integer view)
    >> animations.put(index, view);

    'animations' is a Dictionary<String, Integer> and is a member of class Alien. I am calling it like:

    Alien alien;
    alien.AddAnimationID("idle", R.drawable.idle);

    I am correct in thinking that R.drawable.idle is an int right? findViewByID takes an int for the argument...


  2. jonbonazza

    jonbonazza Well-Known Member

    Jul 13, 2010
    Is the source it is looking for a library or an actual source file?

    If it is the latter, did you create a new project using existing source?

    If it is the former, did you add the JAR file to the build path?
  3. CuddleBunny

    CuddleBunny New Member
    Thread Starter

    Aug 27, 2010
    The file it's looking for is the Activity Thread on at the top of the stack, it seems at least. I added all of the allegedly missing source files to eclipse via jar. The project was built from scratch.

Share This Page