问题描述
我是
在Eclipse Holies环境下工作.但是我的日食没有帮助我在编写代码时找到有关类或方法的细节.
例如: toast android.widget.toast.maketext(上下文上下文,char sequence文本,int持续时间)
如果我鼠标鼠标悬停在 makeText()上,则在上述语句中获取以下信息
注意:此元素没有附带的源,并且在附带的Javadoc中找不到Javadoc
我需要在哪里以及需要附加什么?
推荐答案
如果您已将ADT插件安装到Eclipse,则应确保您下载按照Android SDK 2.2的文档下载的包装,称为某些内容, API 8,修订版1" 或其他. . href =" https://stackoverflow.com/questions/2268183/javadoc-in-an-an-eclipse-android-project"
如果您已经完成了这一切,则 .
例如,这就是我的库路径的外观: 去检查一下您的外观.包括正常Javadocs的位置(SDK Path/docs/reference/) 如果您也要添加源代码,请参见:
http://android.opensourceror.org.org/201010/01/01/18/android -source/
和
http://stuffthathathappens.com/blog/2008/11/01/浏览android-source-in-in-in-in-in-in-
问题描述
I'm
working on android under eclipse holies environment. but my eclipse not helping me to find detail about class or method while writing code.
Ex: Toast android.widget.Toast.makeText(Context context, CharSequence text, int duration)
if i mouse hover on makeText() in above statement, getting following information
Note: This element has no attached source and the Javadoc could not be found in the attached Javadoc
where and what do i need to attach?
推荐答案
If you have installed the ADT plugin to Eclipse then you should make sure that you download the package called something along the lines of "Documentation for Android SDK 2.2, API 8, revision 1" or whatever. Have you gone through the entire installation guide for the Android SDK as posted on the official website? http://developer.android.com/sdk/installing.html this is the one I'm talking about. It's been discussed on SO before as well: JavaDoc in an Eclipse Android Project
If you have done all this, then http://www.vogella.de/articles/Eclipse/article.html#classpath_jarjavadoc does a good job of explaining how to add Sources & Javadocs to existing Libraries in case something went wrong.
For example, this is how my Libraries path looks:
Go check and see how yours looks. Included is the location for the Javadocs normally (SDK Path/docs/reference/)
If you want to add the source code as well, see: http://android.opensourceror.org/2010/01/18/android-source/ & http://stuffthathappens.com/blog/2008/11/01/browsing-android-source-in-eclipse/