-
Notifications
You must be signed in to change notification settings - Fork 19
Description
My environment:
lsb_release -a
LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
java --version
openjdk 11.0.7 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)
uname -a
Linux will-ubuntu 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
The failure result:
./gradlew --version
FAILURE: Build failed with an exception.
-
What went wrong:
Could not determine java version from '11.0.7'. -
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Fix:
I upgrade gradle-3.5 to gradle-6.3 in gradle-6.3, the above failure was fixed.