如何在没有 R 和 BuildConfig 的情况下使用 Android Studio 创建 JavaDoc? [英] How to create JavaDoc using Android Studio without R and BuildConfig?
问题描述
我想为我的库生成 JavaDoc,不包括 R 和 BuildConfig.Tools
菜单中的 Generate JavaDoc...
功能没有排除文件的选项.
I want to generate the JavaDoc for my library excluding R and BuildConfig. The Generate JavaDoc...
functionality from the Tools
menu does not have the option to exclude files.
如何在没有 R 和 BuildConfig 的情况下使用 Android Studio 创建 JavaDoc?
How to create JavaDoc using Android Studio without R and and BuildConfig?
推荐答案
RocketSpock 的回答差不多了,但不完全(在撰写本文时).我还不能发表评论,所以我将描述我用来从 Android Studio 1.2.2 中的 Android 库的 Javadoc 中排除 R.java
和 BuildConfig.java
的过程.基本上有一个额外的对话框会派上用场:
RocketSpock's answer is almost there, but not quite (as of this writing). I can't comment yet, so I'll describe the process I used to exclude R.java
and BuildConfig.java
from my Android library's Javadoc in Android Studio 1.2.2. There's basically an extra dialog that will come in very handy:
打开菜单选项
Tools -->Javadoc
.
选择自定义范围
.没有必要从中选择任何东西下拉菜单.
Select Custom scope
. It's not necessary to select anything from
the drop-down menu yet.
这篇关于如何在没有 R 和 BuildConfig 的情况下使用 Android Studio 创建 JavaDoc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!