Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to check gradlew version But I am facing following error Could not determine java version from ‘11.0.2’ in Java. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How this Error Occurs ?
I am trying to check gradlew version But I am facing following error.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from ‘11.0.2’.
* Try: Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.
* Get more help at https://help.gradle.org
How To Solve Could not determine java version from ‘11.0.2’ Error ?
How To Solve Could not determine java version from ‘11.0.2’ Error ?
To Solve Could not determine java version from ‘11.0.2’ Error You need to upgrade wrapper using this command and just make sure Just Use
gradle
and notgradlew
. gradle wrapper –gradle-version 5.1.1. Secons solution is To resolve this error you need to update distributionUrl in your gradle/wrapper/gradle-wrapper.properties with the following version. distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip. Now your issue must be solved.Could not determine java version from ‘11.0.2’
To Solve Could not determine java version from ‘11.0.2’ Error You need to upgrade wrapper using this command and just make sure Just Use
gradle
and notgradlew
. gradle wrapper –gradle-version 5.1.1. Secons solution is To resolve this error you need to update distributionUrl in your gradle/wrapper/gradle-wrapper.properties with the following version. distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip. Now your issue must be solved.
Solution 1: upgrade wrapper
You need to upgrade wrapper using this command and just make sure Just Use gradle
and not gradlew
.
gradle wrapper --gradle-version 5.1.1
Solution 2: Update distributionUrl
To resolve this error you need to update distributionUrl in your gradle/wrapper/gradle-wrapper.properties with the following version.
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read
running: gradle wrapper –gradle-version 5.1.1
alone cleared up my issue
Thank You Very Much. Been Solving this error for 5 Hours But Your Solution Did it. Thanks a Lot.
It’s my Pleasure to Help You Luis. Thank You For Your Valuable words.