如何查看源代码或javadoc,了解图书馆依赖于Android包在Eclipse? [英] How do I see source or javadocs for a library dependency in an Android package in Eclipse?

查看:241
本文介绍了如何查看源代码或javadoc,了解图书馆依赖于Android包在Eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个包^在Eclipse中。一个标记为图书馆和其他参考它(在属性 - > Android的),如下所述:<一href="http://developer.android.com/guide/developing/projects/projects-eclipse.html">http://developer.android.com/guide/developing/projects/projects-eclipse.html

I have two packages^ in Eclipse. One is marked as a Library and the other references it (under properties->Android), as described here: http://developer.android.com/guide/developing/projects/projects-eclipse.html

我的问题是,当我对一些code指的是引用的项目Eclipse显示鼠标悬停

My problem is that when I hover the mouse over some code referring to the referenced project eclipse displays

这个元素没有附加Javadoc和javadoc的无法连接的源代码中找到

"This element has no attached javadoc and the javadoc could not be found in the attached source"

此外,当我选择右键菜单中的打开宣言为上述code,它会打开相关的.class(而不是的.java)的消息话题

Furthermore when I select "Open Declaration" in the context menu for said code, it opens the associated .class (instead of the .Java) with the messsage

这个类文件的JAR属于容器Android的依赖,这不允许对条目修改源代码的附件

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

在Package Explorer ^根节点,所以我认为他们是所谓的包装,而不是项目。他们都不是罐子。

^ root nodes in the Package Explorer, so I assume they're called packages and not projects. Neither of them are jars.

推荐答案

这应该被固定在最新的ADT版本,但万一有人仍然有像我这样的问题,这是我做的:

this should have been fixed in latest adt version, but in case someone still have this problem like me, here's what i did:

我SRC切换的顺序在我的库项目.classpath文件,这(注意路径=SRC一定要在第一行)

I switched the order of src in .classpath file of my library projects, to this (note that the path="src" must be in the first line)

<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>

这篇关于如何查看源代码或javadoc,了解图书馆依赖于Android包在Eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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