diff --git a/android/config.go b/android/config.go index b73680e6c..79ff32a55 100644 --- a/android/config.go +++ b/android/config.go @@ -291,6 +291,8 @@ func (c *config) fromEnv() error { switch c.Getenv("EXPERIMENTAL_USE_OPENJDK9") { case "": // Use OpenJDK8 + case "false": + // Use OpenJDK8 case "1.8": // Use OpenJDK9, but target 1.8 c.useOpenJDK9 = true diff --git a/ui/build/config.go b/ui/build/config.go index 940bb2fb2..6e5559d06 100644 --- a/ui/build/config.go +++ b/ui/build/config.go @@ -149,7 +149,7 @@ func NewConfig(ctx Context, args ...string) Config { if override, ok := ret.environ.Get("OVERRIDE_ANDROID_JAVA_HOME"); ok { return override } - if v, ok := ret.environ.Get("EXPERIMENTAL_USE_OPENJDK9"); ok && v != "" { + if v, ok := ret.environ.Get("EXPERIMENTAL_USE_OPENJDK9"); ok && v != "" && v != "false" { return filepath.Join("prebuilts/jdk/jdk9", ret.HostPrebuiltTag()) } return filepath.Join("prebuilts/jdk/jdk8", ret.HostPrebuiltTag())