此类文件的罐子属于容器“Android的依赖”,这不允许在其条目源代码修改源附件此类、罐子、条目、源代码

2023-09-13 00:49:04 作者:青梅老去竹马枯萎

我有一个库项目和其他项目,它使用一些类从库项目。当我设置的库类的一个破发点,而我的应用程序停止在破发点时,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.