diff --git a/java/droiddoc.go b/java/droiddoc.go index e39a556e7..85a61dd98 100644 --- a/java/droiddoc.go +++ b/java/droiddoc.go @@ -1298,6 +1298,7 @@ func metalavaCmd(ctx android.ModuleContext, rule *android.RuleBuilder, javaVersi cmd.BuiltTool(ctx, "metalava"). Flag(config.JavacVmFlags). + Flag("-J--add-opens=java.base/java.util=ALL-UNNAMED"). FlagWithArg("-encoding ", "UTF-8"). FlagWithArg("-source ", javaVersion.String()). FlagWithRspFileInputList("@", srcs).