Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

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

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?

the error message

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...