Unable to Debug Library Projects with ADT v14 - Source Not Found

前端 未结 7 1363
北海茫月
北海茫月 2021-02-05 02:49

Ever since upgrading my current projects to use the new R14 Tools in Eclipse, I\'m now unable to debug any code that exists in my library projects.

When I hit a break po

7条回答
  •  心在旅途
    2021-02-05 03:28

    Tried all of the above and it did not work for me, however the workaround detailed here did.

    http://code.google.com/p/android/issues/detail?id=20731

    1. Start debugging, and run until you hit a breakpoint (and precisely get a .class file instead of the .java you would like to have)
    2. Right click in the Debug view of the Debug perspective (for example on the call stack), and choose "Edit Source Lookup Path"
    3. Add all your projects above "Default", via "Add..." > "Java project" > "Select All"

    (I'm using ADT 15.0.2 preview from http://tools.android.com/download)

提交回复
热议问题