简体   繁体   English

如何将缺少的Android Javadoc添加到Eclipse?

[英]How to add missing Android javadoc to Eclipse?

My Eclipse is missing some Android javadoc options. 我的Eclipse缺少一些Android javadoc选项。 For instance, I don't get autocomplete option for android:layout_span , which is under TableRow . 例如,我没有在TableRow下获得android:layout_span自动完成选项。 How do I add these javadocs and others that may be missing? 如何添加这些javadocs和其他可能会丢失的javadocs?

There could be two reasons for the same 1. You may be using older min SDK version, hence auto complete does not come 2. Javadoc does not popup. 可能有两个相同的原因1.您可能使用的是较早的min SDK版本,因此不会自动完成。2. Javadoc不会弹出。

If your jar has a given api, then you will get the autocomplete for sure, autocomplete has got nothing to do with javadoc. 如果您的jar具有给定的api,那么您肯定会获得自动完成功能,而自动完成功能与javadoc无关。

As you have asked about javadoc, let me show you how to set it up. 当您询问Javadoc时,让我向您展示如何进行设置。

In your project, you must see Android 4.4 as one of the library dependency, expand it. 在您的项目中,您必须将Android 4.4视为库依赖项之一,将其展开。 you will see android.jar, right click > properties. 您将看到android.jar,右键单击>属性。

There you can see javadoc location as one of the option Give the javadoc location as http://developer.android.com/reference/ 在那里,您可以看到javadoc位置作为以下选项之一:将javadoc位置设置为http://developer.android.com/reference/

You can validate it as well. 您也可以验证它。

This should give you javadoc. 这应该给你javadoc。 but the problem you are explaining is not a javadoc issue. 但是您要说明的问题不是javadoc问题。

Check the projects manifest file to see if the min SDK is proper. 检查项目清单文件以查看min SDK是否正确。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM