1

I have two android projects one library project (A) and the second one an android project (B) which is referencing the android library project A.

Both projects are in the workspace ..

When I am debugging the application project B and drill down into the library code of project A. Eclipse takes me to the class file instead of the .java file.

This is quite annoying, causing quite a few redundant files opening up,..

If the code is there in the workspace, I expect breakpoints etc to hit in java files and not in the .class files.

Please any ideas ?

Thank you, Ahmed

7
  • Is project B recognized in project A as an Eclipse project, or do you use a jar file of project B? Mar 28, 2012 at 21:41
  • I am doing it via project properties ->android -> library -> ADD and then select the library project. As a result there is a node for libraries created which does reference mylibrary.jar file.
    – Ahmed
    Mar 28, 2012 at 22:07
  • Ok, so on the jar file in your library container, you should be able to right-click it and select properties. In Java source attachement you can reach your Project B source path. This is not ideal but it should work. I have never used Android SDK so can't help you more on this. Mar 28, 2012 at 22:09
  • I just looked into jar properties and there was already a reference to source code of library there :|
    – Ahmed
    Mar 28, 2012 at 22:18
  • make sure that reference points to the library project's source folder, not the bin / class.
    – rekaszeru
    Mar 29, 2012 at 5:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.