eclipse 第三方jar包 关联源码,提示 The Jar of this class file belongs to container 'Android Dependencies'


分类: eclipse

eclipse 第三方jar包 关联源码,提示


The Jar of this class file belongs to container 'Android Dependencies' which does not allow modifications to source attachments on its entries


解释


Notice the workaround in comment 8


http://code.google.com/p/android/issues/detail?id=27490#c8. "Hello, I have solution to problem described in a comment 3:


Move content from libs folder back to lib because ADT 17 automatically add all jars from libs directory under Android dependencies.
Add dependencies from your lib directory as normal eclipse dependency (the old way before ADT 17). Link JAR files with their source JAR files or Javadoc.
In Project properties -> Java build path -> Order and export check all your added dependencies to be included with project class files.
Select Android Tools > Fix Project Properties"


意思是复制jar包到lib目录下,不要放到libs目录下,因为邮件lib目录下的jar包,选择and to build path的时候就相当于将其加到libs目录下,所以下一步就是Refernced Libaries 下选中对应的jar包
鼠标右键选择属性,选择java source attachment 关联源码,javadoc即可,然后In Project properties -> Java build path -> Order and export check all your added dependencies to be included with project class files.
ok 搞定
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值