Exception: Gradle install not valid
UnityEditor.Android.GradleWrapper.GetGradleJarPath () (at <e1c3953b4cf040ddb1400046b1c34897>:0)
UnityEditor.Android.GradleWrapper.GetBaseCommand (System.Int32 jvmHeapSize) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
UnityEditor.Android.GradleWrapper.WarmupGradle (UnityEditor.Android.AndroidJavaTools javaTools, System.Int32 jvmHeapSize) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
UnityEditor.Android.PostProcessAndroidPlayer+<ExecuteWarmup>c__AnonStorey0.<>m__0 () (at <e1c3953b4cf040ddb1400046b1c34897>:0)
System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Threading.ThreadHelper.ThreadStart () (at <ac823e2bb42b41bda67924a45a0173c3>:0)
UnityEngine.UnhandledExceptionHandler:<RegisterUECatcher>m__0(Object, UnhandledExceptionEventArgs)
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.
Manhiem
November 15, 2020, 5:32am
2
Hey even I got the same error… Any solution you could find???
I got same error, did you guys find any solution?
Towerss
January 13, 2021, 12:04pm
4
You could try by checking this checkbox is ticked
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.
I’m unable to resolve this even after clicking the box…
1 Like
a_k791
October 27, 2021, 11:14am
7
Hello, How you solve this proplem ? now i uninstall unity and i will install it again.
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.
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.
iverybayer:
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.
Have you fixed this issue? I am having the same issue with Unity 2020.3.38f1 and Gradle 6.1.1
I have the same issue, someone solve it?
if i check the box. i get “Gradle Build Error”.
Not Work i use 2023 Unity