mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
cmd/gogio: [Android] suggest only Java 1.8 when d8 fails
We're compiling with -target and -source set to 1.8, so 1.7 is not adequate. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -362,8 +362,8 @@ func exeAndroid(tmpDir string, tools *androidTools, bi *buildInfo, extraJars, pe
|
||||
d8.Args = append(d8.Args, classFiles...)
|
||||
if _, err := runCmd(d8); err != nil {
|
||||
major, minor, ok := determineJDKVersion()
|
||||
if ok && (major != 1 || minor < 7 || 8 < minor) {
|
||||
return fmt.Errorf("unsupported JDK version %d.%d, expected 1.7 or 1.8\nd8 error: %v", major, minor, err)
|
||||
if ok && (major != 1 || minor != 8) {
|
||||
return fmt.Errorf("unsupported JDK version %d.%d, expected 1.8\nd8 error: %v", major, minor, err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user