此类文件的jar属于容器“Android依赖关系”,它不允许对其条目的源附件进行源修改 [英] The jar of this class file belongs to container 'Android Dependencies' which does not allow source modifications to source attachments on its entries

查看:453
本文介绍了此类文件的jar属于容器“Android依赖关系”,它不允许对其条目的源附件进行源修改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个图书馆项目,另一个项目使用图书馆项目中的一些类。一旦我在其中一个库类别中设置了一个断点,并且我的应用程序在断点处停止,Eclipse会显示错误消息


源找不到



此类文件的jar属于容器Android依赖关系
,不允许源代码修改源附件b $ b条目


有人能帮我吗?



解决方案

我找到答案!



不知何故(不要问我为什么)Eclipse搞砸了我的图书馆项目类路径文件。它以错误的顺序列出了src类路径条目(请参阅下面的附件)。



看起来只是第一个条目当前导出到libraryproject.jar,这是由我的应用程序使用。
因此,只有源代码被附加,而不是src目录中的源。




I have a library project and another project which uses some classes from the library project. As soon as I am setting a break point in one of the library classes, and my app stops at the break point, Eclipse shows me the error message

Source not found

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

Can someone help me?

解决方案

I found the answer!

Somehow (dont ask me why) Eclipse messed up my librarry projects classpath file. it listed the "src" classpath entries in the wrong order (see attachment below).

looks like only the first entry is currently exported to the libraryproject.jar, which is used by my app-project. Therefore only the gen-sources got attached, and not the sources in the src dir.

这篇关于此类文件的jar属于容器“Android依赖关系”,它不允许对其条目的源附件进行源修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆