我的Android进阶之旅------>Android无第三方Jar包的源代报错:The current class path entry belongs to container ...的解决方法

今天使用第三方Jar包afinal.jar时候。想看一下源码,无法看

我的Android进阶之旅------>Android无第三方Jar包的源代报错:The current class path entry belongs to container ...的解决方法

然后像加入jar相应的源代码包。也无法加入相应的源代码,报错例如以下:The current class path entry belongs to container 'Android Dependencies' 

which does not allow user modifications to source attachments on its entries .

例如以下图所看到的:

我的Android进阶之旅------>Android无第三方Jar包的源代报错:The current class path entry belongs to container ...的解决方法 


解决方法:

1、接着在project目录下新建一个lib资源目录(千万别放 libs 下),将你的第三方jar放到这个目录里。afinal_0.5.jar 这是本项目须要加入的第三方 Jar 包。

我的Android进阶之旅------>Android无第三方Jar包的源代报错:The current class path entry belongs to container ...的解决方法 我的Android进阶之旅------>Android无第三方Jar包的源代报错:The current class path entry belongs to container ...的解决方法

2、右键点击 afinal_0.5.jar加入到 Build Path 中。


我的Android进阶之旅------>Android无第三方Jar包的源代报错:The current class path entry belongs to container ...的解决方法

3、右键点击 afinal_0.5.jar选择 Properties 。选择 External location 下的 External Folder button,找到对应的源码。

我的Android进阶之旅------>Android无第三方Jar包的源代报错:The current class path entry belongs to container ...的解决方法

4.查看相关类的源码,成功。

我的Android进阶之旅------>Android无第三方Jar包的源代报错:The current class path entry belongs to container ...的解决方法






                            ====================================================================================

  作者:欧阳鹏  欢迎转载。与人分享是进步的源泉!

  转载请保留原文地址http://blog.csdn.net/ouyang_peng

====================================================================================

我的Android进阶之旅------>Android无第三方Jar包的源代报错:The current class path entry belongs to container ...的解决方法