Change the attached source in eclipse (android)

I am working on an Android project that depends on a library written in Java. I am also developing a library, so I have sources for both the main project and the library. I work with eclipse in a standard way - both the library and the main project - Android projects (without an external banner in the build path or something like that), both open in the same workspace.

I have a problem debugging library code. I can set a breakpoint there, the program really breaks, but I do not see the source code (which is open in the next child window: - (...), I only see the class file editor for the correct file and the Java pseudo-assembler code. There is a button " Change the attached source ... ", which looks potentially, but the problem is that this button sometimes does not work. When I click it, I can select" workspace ... "or" external folder ... ", select the directory library src and click ok, but this has no effect. There will only be a short dialog Ogressa and no changes.

Please note that sometimes “Change the attached source ...” works, but in general, if it fails, the second (3rd, 4th, ...) will always not work, so the attempt no longer helps. When “Change Attached Source ...” takes effect, it works well for several eclipse sessions, but then it does not work again and restores it with “Change Attached Source ...” - this is a big lottery. Sometimes it works, sometimes not.

Problems with library code only. The main project always works well even without explicit source settings.

Any idea?

" ..." . ( ) , , "Edit attach source..." ( , "Edit" ), . , . Eclipse Android.

+5
5

, ( Eclipse: Juno Release, Build id: 20120614-1722 Android SDK 20.0.3). "" , , . src dir. Eclipse Android SDK/ADT.

+4

Android, SDK. "sources" . , , "external folder", .

0

1-

2- ()

3-

4 - sdk android

5- .

0

" " Android SDK - : C:\Android\SDK\ , Android SDK

0

All Articles