aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Android.bp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 7dfc0512..f67ea232 100644
--- a/Android.bp
+++ b/Android.bp
@@ -23,6 +23,10 @@ java_binary_host {
static_libs: [
"dokka-tools-common-m2-deps",
],
+ // Pin to Java 8 since dokka doesn't compile with the Java 9 module system
+ // (it references packages under com.sun.tools.doclets which are not
+ // exported from the jdk.javadoc module) (see b/140097603):
+ java_version: "1.8",
kotlincflags: ["-language-version 1.2 -api-version 1.2 -jvm-target 1.8"],
use_tools_jar: true,
java_resource_dirs: ["core/src/main/resources"],