diff --git a/java/droiddoc.go b/java/droiddoc.go index 543749983..1ac7444a5 100644 --- a/java/droiddoc.go +++ b/java/droiddoc.go @@ -1345,6 +1345,7 @@ func (d *Droidstubs) stubsFlags(ctx android.ModuleContext, cmd *android.RuleBuil cmd.FlagWithArg("--doc-stubs ", stubsDir.String()) } else { cmd.FlagWithArg("--stubs ", stubsDir.String()) + cmd.Flag("--exclude-documentation-from-stubs") } }