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

来源:互联网 发布:jquery 数组添加对象 编辑:程序博客网 时间:2024/05/29 13:55

工作项目是多项目依赖,突然发现无法跳转到依赖项目源码,也无法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文件中这两都换了,搞定……纠结了一天的问题终于搞定了……


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

0 0
原创粉丝点击