【已解决】Android的ADT调试期间出现提示:The Jar of this class file belongs to container ‘Android Dependencies’ whic
2014-09-11 10:43
609 查看
【未解决】Eclipse的ADT中调试Android程序时给jar包添加源码以便源码级调试
当看不到Class File Editor中可以显示让自己选择源码的是,就有对应的:
所以要去搞清楚到底是什么意思。
The Jar of this class file belongs to container ‘Android Dependencies’
which does not allow modifications to source attachments on its entries
想要接着加src和javadoc配置呢,
突然发现,此处我这里,根本就没有对应的source.jar的包。
所以没法直接加上述类似的配置。
2.后来自己去找到对应的dependencies的位置,结果却发现,source attachment,根本无法手动加源码:
The jar of this class file belongs to container ‘Android Dependencies’
which does not allow source modifications to source attachments on its entries
去确认了自己的ADT版本,是21,不是17:
无法查看第三方jar包源码解决
usb-serial-for-android-v0.2.1-pre.jar
根本找不到什么Build Path:
包括对应的Property中,也没有什么Build Path:
Android ADT 18+ 添加第三方源码包挂载以及查看问题解决
不要把jar放在libs,而放在lib中,就可以去通过Build Path添加源码了。
我此处,不希望去改动目录结构,必须还是把jar要放在libs中。
eclipse 遭遇及解决 debug调试时 因Android Dependencies而Source not found
去Debug视图下,右击线程,选择:
Default->Add->Java Project
当前Class File Editor界面中,并不会变化,还是不能同步看到源码。
继续调试,或者说,重新调试,再去单步F5执行的话,就可以看到源码了:
如此,真正的,解决了此问题。
项目中,新建lib文件夹,把对应的jar,从默认加入到的libs文件夹中,移到这个lib文件夹
然后右击对应的jar,然后通过Build Path,去添加对应的源码。
在调试期间,即Debug视图下,
右击那个Debug的Tab中的当前的Thread
Edit Source Lookup->Default->Add->Java Project->选择你的jar所对应的源码所在的项目->OK->OK
再继续debug或者是重新debug,即可实现:F5可以进入对应的源码,进行源码调试了。
即使你没有源码所对应的项目,估计通过添加对应的文件夹(Absolute File Path或File System Directory之类的),应该也是可以添加源码的。
当看不到Class File Editor中可以显示让自己选择源码的是,就有对应的:
The Jar of this class file belongs to container ‘Android Dependencies’ which does not allow modifications to source attachments on its entries |
所以要去搞清楚到底是什么意思。
The Jar of this class file belongs to container ‘Android Dependencies’
which does not allow modifications to source attachments on its entries
D:\DevRoot\xxxx\TFS_Root\Main\src\MobileHandHeld\libs>touch usb-serial-for-android-v0.2.1-pre.jar.properties D:\DevRoot\xxxx\TFS_Root\Main\src\MobileHandHeld\libs>
想要接着加src和javadoc配置呢,
突然发现,此处我这里,根本就没有对应的source.jar的包。
所以没法直接加上述类似的配置。
2.后来自己去找到对应的dependencies的位置,结果却发现,source attachment,根本无法手动加源码:
The jar of this class file belongs to container ‘Android Dependencies’
which does not allow source modifications to source attachments on its entries
去确认了自己的ADT版本,是21,不是17:
无法查看第三方jar包源码解决
usb-serial-for-android-v0.2.1-pre.jar
根本找不到什么Build Path:
包括对应的Property中,也没有什么Build Path:
Android ADT 18+ 添加第三方源码包挂载以及查看问题解决
不要把jar放在libs,而放在lib中,就可以去通过Build Path添加源码了。
我此处,不希望去改动目录结构,必须还是把jar要放在libs中。
eclipse 遭遇及解决 debug调试时 因Android Dependencies而Source not found
去Debug视图下,右击线程,选择:
Default->Add->Java Project
当前Class File Editor界面中,并不会变化,还是不能同步看到源码。
继续调试,或者说,重新调试,再去单步F5执行的话,就可以看到源码了:
如此,真正的,解决了此问题。
项目中,新建lib文件夹,把对应的jar,从默认加入到的libs文件夹中,移到这个lib文件夹
然后右击对应的jar,然后通过Build Path,去添加对应的源码。
在调试期间,即Debug视图下,
右击那个Debug的Tab中的当前的Thread
Edit Source Lookup->Default->Add->Java Project->选择你的jar所对应的源码所在的项目->OK->OK
再继续debug或者是重新debug,即可实现:F5可以进入对应的源码,进行源码调试了。
即使你没有源码所对应的项目,估计通过添加对应的文件夹(Absolute File Path或File System Directory之类的),应该也是可以添加源码的。
相关文章推荐
- eclipse 第三方jar包 关联源码,提示 The Jar of this class file belongs to container 'Android Dependencies'
- The JAR of this class file belongs to container 'Android Private Libraries' Android查看外部依赖jar的源码问题解
- 我的Android进阶之旅------>Android无第三方Jar包的源代报错:The current class path entry belongs to container ...的解决方法
- 解决eclipse出现This Android SDK requires Andro...date ADT to the latest version.问题
- VC6编辑时提示This file has been modified outside of the source of editor.Do you want to reload it?解决方法
- 解决eclipse出现This Android SDK requires Andro...date ADT to the latest version.问题
- 我的Android进阶之旅------>Android无第三方Jar包的源代报错:The current class path entry belongs to container ...的解决方法
- 解决eclipse出现This Android SDK requires Andro...date ADT to the latest version.问题
- Android在使用过程中出现The connection to adb is down, and a severe error has occured提示问题的解决
- Android SDK更新后提示This version of ADT requires the...your SDK to the latest version
- Android 单步调试出现The jar file ....android.jar has no source attachment
- 安装Android studio出现'tools.jar' seems to be not in Android Studio classpath......的解决方法
- Android SDK更新后提示This version of ADT requires the...your SDK to the latest version
- Android中导入工程出现Project has no default.properties file! Edit the project properties to set one.的解决方法
- 解决Android开发中在调试模式下运行一个程序后出现Application (xxx) is waiting for the debugger to attach
- Android中导入工程出现Project has no default.properties file! Edit the project properties to set one.的解决方法
- Unity3d 提示 "The scripts file name does not match the name of the class defined in the script!"的解决办法
- Github出现failed to sync branch You might need to open a shell and debug the state of this repo的解决方法
- 升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误