分类: eclipse
eclipse 第三方jar包 关联源码,提示
The Jar of this class file belongs to container 'Android Dependencies' which does not allow modifications to source attachments on its entries
解释
Notice the workaround in comment 8
http://code.google.com/p/android/issues/detail?id=27490#c8. "Hello, I have solution to problem described in a comment 3:
Move content from libs folder back to lib because ADT 17 automatically add all jars from libs directory under Android dependencies.
Add dependencies from your lib directory as normal eclipse dependency (the old way before ADT 17). Link JAR files with their source JAR files or Javadoc.
In Project properties -> Java build path -> Order and export check all your added dependencies to be included with project class files.
Select Android Tools > Fix Project Properties"
意思是复制jar包到lib目录下,不要放到libs目录下,因为邮件lib目录下的jar包,选择and to build path的时候就相当于将其加到libs目录下,所以下一步就是Refernced Libaries 下选中对应的jar包
鼠标右键选择属性,选择java source attachment 关联源码,javadoc即可,然后In Project properties -> Java build path -> Order and export check all your added dependencies to be included with project class files.
ok 搞定
The Jar of this class file belongs to container 'Android Dependencies' which does not allow modifications to source attachments on its entries
解释
Notice the workaround in comment 8
http://code.google.com/p/android/issues/detail?id=27490#c8. "Hello, I have solution to problem described in a comment 3:
Move content from libs folder back to lib because ADT 17 automatically add all jars from libs directory under Android dependencies.
Add dependencies from your lib directory as normal eclipse dependency (the old way before ADT 17). Link JAR files with their source JAR files or Javadoc.
In Project properties -> Java build path -> Order and export check all your added dependencies to be included with project class files.
Select Android Tools > Fix Project Properties"
意思是复制jar包到lib目录下,不要放到libs目录下,因为邮件lib目录下的jar包,选择and to build path的时候就相当于将其加到libs目录下,所以下一步就是Refernced Libaries 下选中对应的jar包
鼠标右键选择属性,选择java source attachment 关联源码,javadoc即可,然后In Project properties -> Java build path -> Order and export check all your added dependencies to be included with project class files.
ok 搞定