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

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

问题描述

我有一个库项目和其他项目,它使用一些类从库项目。当我设置的库类的一个破发点,而我的应用程序停止在破发点时,Eclipse显示我的错误信息

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

源未找到

本类文件的罐子属于容器Android的依赖关系   即不允许对源代码的修改,以源附件的   项

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

有人能帮助我吗?

推荐答案

我找到了答案!

不知怎的,(不要问我为什么)的Eclipse搞砸了我librarry项目类路径文件。它列出的SRC类路径条目以错误的顺序(见下文附件)。

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).

看起来只有第一条目当前出口libraryproject.jar,其用于通过我的应用程序,项目。 因此,只有在发电机源得到连接,而不是源在src目录。

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.

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

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