diff --git a/java/droiddoc.go b/java/droiddoc.go index 9b1f43b4c..fc95184f1 100644 --- a/java/droiddoc.go +++ b/java/droiddoc.go @@ -755,6 +755,7 @@ func dokkaCmd(ctx android.ModuleContext, rule *android.RuleBuilder, return rule.Command(). BuiltTool("dokka"). Flag(config.JavacVmFlags). + Flag("-J--add-opens=java.base/java.lang=ALL-UNNAMED"). Flag(srcJarDir.String()). FlagWithInputList("-classpath ", dokkaClasspath, ":"). FlagWithArg("-format ", "dac").