Javadoc生成为Android [英] Javadoc generation for Android

查看:174
本文介绍了Javadoc生成为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我的生成文档,我的javadoc的Andr​​oid项目。问题是javadoc的是无法找到Android包。我的错误是相同的<一个href=\"http://stackoverflow.com/questions/5200234/javadoc-in-eclipse-failing-to-recognize-packages\">this一。如果我尝试第一解决它说:

I am trying to generate my documentation for my android project with javadoc. The problem is that javadoc isn't able to find the android package. My error is the same as this one. If I am trying the first solution it says:

的javadoc:错误 - -classpath选项可以指定不超过一次。

javadoc: error - The -classpath option may be specified no more than once.

我在做什么错了?

此外,我试过这个的解决方案,但我不知道我有什么在最后一步做。

Furthermore, I tried this solution, but I dont know what I have to do at the last step.

推荐答案

好吧,我解决了问题该解决方案 。所有我需要做的就是安装 Cygwin的。它安装后,我需要在Cygwin上安装 ANT 喜欢的this 。后来,我只好配置Java Cygwin中。

Okay, I solved the problem with this solution. All I needed to do is to install Cygwin. After it was installed, I needed to install ANT on Cygwin like this. Afterwards, I had to configure java in Cygwin.

而现在对我来说是新的细节(也许为什么 -classpath 命令并没有在生成的Eclipse Javadoc的第三步为我工作的原因)。我不得不打开 javadoc.xml 并看到了这行:

And now a new detail for me(maybe the reason why the -classpath command didn't worked for me in the third step of Generate Javadoc in Eclipse). I had to open the javadoc.xml and saw this line:

<javadoc [...] additionalparam="-classpath C:\Progra~2\Android\android-sdk\platforms\android-10\android.jar" classpath="C:\Program Files (x86)\Android\android-sdk\tools\support\annotations.jar" [...]/>

该additionalparam是我自己生成Javadoc的第三步。我带着这条道路,并把它放到CLASSPATH =......就是这样。也许有人会说如何手动配置Eclipse中的类路径,因为我无法找到的东西。

The additionalparam is my own of the third step of Generate Javadoc. I took that path and put it into the classpath="" ... That's it. Maybe someone could say how to configure the classpath in Eclipse manually, because I couldn't find something.

还好吧,现在切换到的文件夹中的 javadoc.sh 并运行 SH javadoc.sh 该文件

Allright, now switched to the folder of the javadoc.sh and run that file with sh javadoc.sh

这篇关于Javadoc生成为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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