close

[Solved] Could not determine java version from ‘11.0.2’

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 ?

  1. 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 not gradlew. 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.

  2. 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 not gradlew. 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

3 thoughts on “[Solved] Could not determine java version from ‘11.0.2’”

Leave a Comment