Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Exception: Gradle install not valid

Discussion in 'Editor & General Support' started by LandonC, Jul 15, 2020.

  1. LandonC

    LandonC

    Joined:
    Dec 20, 2012
    Posts:
    83
    Code (CSharp):
    1. Exception: Gradle install not valid
    2. UnityEditor.Android.GradleWrapper.GetGradleJarPath () (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    3. UnityEditor.Android.GradleWrapper.GetBaseCommand (System.Int32 jvmHeapSize) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    4. UnityEditor.Android.GradleWrapper.WarmupGradle (UnityEditor.Android.AndroidJavaTools javaTools, System.Int32 jvmHeapSize) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    5. UnityEditor.Android.PostProcessAndroidPlayer+<ExecuteWarmup>c__AnonStorey0.<>m__0 () (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    6. System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    7. System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    8. System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    9. System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    10. System.Threading.ThreadHelper.ThreadStart () (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    11. UnityEngine.UnhandledExceptionHandler:<RegisterUECatcher>m__0(Object, UnhandledExceptionEventArgs)
    12.  
    13.  
    Any suggestions to resolve this problem? I get it every time I tried to build my project. It occurred after I moved my project to a new computer.
     
  2. Manhiem

    Manhiem

    Joined:
    Jul 31, 2019
    Posts:
    4
    Hey even I got the same error... Any solution you could find????
     
  3. tanisha62183

    tanisha62183

    Joined:
    Nov 22, 2020
    Posts:
    6
    upload_2020-11-23_23-25-55.png
    I got same error, did you guys find any solution?
     
  4. Towerss

    Towerss

    Joined:
    Feb 17, 2018
    Posts:
    8
    You could try by checking this checkbox is ticked Untitled.png
     
  5. VirtualPierogi

    VirtualPierogi

    Joined:
    Sep 3, 2012
    Posts:
    54
    the thing is i want to build the project with android oreo 8.1 build target specifically because there is some weird problem with android 10 that makes realsense camera not providing the depth stream and this was a workaround that could make it work.
     
  6. Cyber9J

    Cyber9J

    Joined:
    Sep 8, 2021
    Posts:
    1
    I'm unable to resolve this even after clicking the box...
     
    cbrig25 likes this.
  7. a_k791

    a_k791

    Joined:
    Mar 31, 2017
    Posts:
    1
    Hello, How you solve this proplem ? now i uninstall unity and i will install it again.
     
  8. Dragantium

    Dragantium

    Joined:
    Feb 14, 2015
    Posts:
    34
    It works?
     
  9. iHammadArshad

    iHammadArshad

    Joined:
    Mar 26, 2017
    Posts:
    2
    I checked here and my Gradle folder path was wrong. If the built-in Gradle files are not working you can always download and select them manually as per your Unity version.

    The latest one working for me can be downloaded from here.

    https://services.gradle.org/distributions/gradle-6.9.1-all.zip

    I am using it for all 2019 and 2020 versions and so far it solves this issue. Hope it helps.
     
  10. iverybayer

    iverybayer

    Joined:
    Jun 7, 2022
    Posts:
    1
    I tried many versions of gradle, 5.1.1, 5.6.4, 6.9.1, and I'm currently using Unity version 2019.3.1. Keep getting the same cradle install not valid error...I'm not using Unity Hub so I'm manually downloading the JDK, NDK, SDK. The gradle is the only error I have now before building a project.
     
  11. NDPNDNT

    NDPNDNT

    Joined:
    Aug 8, 2022
    Posts:
    3
    Have you fixed this issue? I am having the same issue with Unity 2020.3.38f1 and Gradle 6.1.1
     
  12. noamriahi

    noamriahi

    Joined:
    Oct 15, 2019
    Posts:
    4
    I have the same issue, someone solve it?
     
  13. evansussy7

    evansussy7

    Joined:
    Sep 26, 2023
    Posts:
    1
    if i check the box. i get "Gradle Build Error".