Reputation: 15664
gradle version 6.0
gradle wrapper settings:
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
On Windows 10 I success run command
gradlew --tasks
but on Linux Mint 19 I try this and get error:
./gradlew --tasks
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from '11.0.6'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Upvotes: 1
Views: 207
Reputation: 1639
Try upgrading your gradle version. The latest one at the moment is:
distributionUrl=https://services.gradle.org/distributions/gradle-6.3-all.zip
Alternatively, try downgrading your java version after comparing the java versions on your Windows and Ubuntu. Good luck.
Upvotes: 1