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

前端 未结 7 1402
北海茫月
北海茫月 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

    I had the same problem in a project today. The project consists of an app which has two library dependencies. I could not see code during debugging and when using auto-completion when overriding methods Eclipse was unable to deduce proper argument names.

    First of all, the problem manifested itself by showing the the 'gen' folder was used as the one that contained the source. To check whether this is the same issue go to your app project, open the Android dependencies and have a look at the properties of the your library dependencies. Location path said /libraryprojectname/gen.

    If this is also your problem then go to the 'Order and Export' tab of each library project and move the 'gen' item below the 'src' item. As soon as you click OK Eclipse will work a bit and when you check the Android dependency properties the location path should say: /libraryprojectname/src. Open click the dependency and open any class inside the jar. It should show the source.

    I am using ADT plugin 20.0.3 with Android SDK Tools 20.0.3 and Android SDK Platform Tools 14.

提交回复
热议问题