如何安装的javadoc为Android兼容包? [英] How to install javadoc for Android Compatibility Package?

查看:168
本文介绍了如何安装的javadoc为Android兼容包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何生成自定义的javadoc为Android 1.4兼容包?

How to generate custom javadoc for android 1.4 compatibility package?

参考文档可在网上(<一href="http://developer.android.com/reference/android/support/v4/app/package-summary.html">example),但有一些地方,我可以用javadoc的脱机可用一个zip?

The reference docs are available online (example), but is there some place where I can get a zip with javadoc available offline?

我想用javadoc的将是pretty的简单,设定的javadoc位置的兼容性罐只是早晚的问题。

I suppose using the javadoc would be pretty simple, just a matter of setting the javadoc location for the compatibility jar.

推荐答案

您可以在离线的javadoc在自己的从源头code产生。只要浏览到您的Andr​​oid SDK目录,然后执行以下操作

You can generate your javadoc offline on your own from the source code. Just navigate to your android sdk directory then do the following

cd <path_to_android_sdk>/extras/android/compatibility/v4/
mkdir docs

对于Windows:

For Windows:

javadoc -d docs -sourcepath src\java -subpackages android.support.v4

对于Linux / Mac的:

For Linux/Mac:

javadoc -d docs -sourcepath src/java -subpackages android.support.v4

这会在本地生成的javadoc,了解你的文档刚创建目录。

This will generate your javadocs for you locally in the docs directory that you just created.

然后在您的Eclipse Android项目,去你的项目属性您添加的 Android的支持 - v4.jar ,修改它的属性,并添加路径您刚刚创建的javadoc。

Then in your eclipse android project, go to your project properties where you added the your android-support-v4.jar, edit it's properties and add the the path to the javadocs you just created.

这应该工作!

ADT 17+的问题:

由于你们有些人指出。已经有越来越Eclipse中看到ADT 17+所附的javadoc问题。这是一个已知的问题和错误已被提起。这是不相关的生成javadoc的(如我上面描述)的方式,而这是一个问题,ADT 17+与Eclipse集成。有人形容一种变通方法,它可以在这里如下:

As some of you have pointed out. There have been issues getting Eclipse to see the attached javadoc for ADT 17+. This is a known issue and a bug has been filed. This is not related to the way you generate the javadoc (as I described above), rather this is an issue with ADT 17+ integrating with Eclipse. Someone has described a workaround and it can be followed here:

<一个href="http://$c$c.google.com/p/android/issues/detail?id=28801">http://$c$c.google.com/p/android/issues/detail?id=28801

这篇关于如何安装的javadoc为Android兼容包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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