[eclipse error]'Android Dependencies' which does not allow modifications to source attachments on it

工作项目是多项目依赖,突然发现无法跳转到依赖项目源码,也无法debug,错误提示如下:

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


网上看了N多方法都无效啊……叫个纠结呀……最终我自力更生了……


对比了下我项目和同事项目里各种配置文件的差异,然后发现.classpath文件里头顺序有点不一致。


<classpath>

<span style="color:#ff6666;"><classpathentry kind="src" path="gen"/>
<classpathentry kind="src" path="src"/></span>

......
</classpath>

问题就出在我标红的这两条上……把这两位置换一换,src放在gen前面就好了……

然后我把所有依赖项目的classpath文件中这两都换了,搞定……纠结了一天的问题终于搞定了……


原因未知……有知道的麻烦告诉我一下……

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值