Search Unity

Gradle Build Failed error, "Could not determine java version from '10.0.1'."

Discussion in 'Editor & General Support' started by rja868, May 19, 2018.

  1. rja868

    rja868

    Joined:
    May 19, 2018
    Posts:
    2
    Hi,

    When attempting an Android build, I'm getting the following error message:

    CommandInvokationFailure: Gradle build failed.
    C:/Program Files/Java/jdk-10.0.1\bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"

    stderr[

    FAILURE: Build failed with an exception.

    * What went wrong:
    Could not determine java version from '10.0.1'.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    ]
    stdout[

    ]
    exit code: 1


    I have the latest JDK installed and I'm running Windows 10. I'm new to Unity and would really appreciate some help with this!

    -Rich
     
  2. bhaskar1234

    bhaskar1234

    Joined:
    Jul 2, 2017
    Posts:
    1
    I'm having this issue too... I've used Unity for a good few years, and I was setting it up on my new computer. Similar to the op, I installed the latest JDK (10.01) and am running Windows 10. Any help would be appreciated
     
  3. rja868

    rja868

    Joined:
    May 19, 2018
    Posts:
    2
    jister, sandersonphil and liortal like this.
  4. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Unity does not support JDK 10. They should note this in their docs BTW.