Search Unity

Bug Building an android app won't work.(CommandWithNoStdoutInvokationFailure)

Discussion in 'Documentation' started by remcoh, Oct 30, 2022.

  1. remcoh

    remcoh

    Joined:
    Sep 10, 2022
    Posts:
    8
    Hi, Whenever i want to build my app for android, the build crashes in the last few seconds.


    I have no other bugs in the game and everything should work fine.
    I couldn't find any answers on the internet. i'm also new to programming.
    I don't know if this is a fault on my of unity's part.

    Error log:
    CommandWithNoStdoutInvokationFailure: Gradle initialization failed.
    UnityEditor.Android.Command.RunWithShellExecute (System.String command, System.String args, System.String workingdir, System.String errorMsg) (at <e974fadd19844a67bf8bc852be0bee5b>:0)
    UnityEditor.Android.AndroidJavaTools.RunJavaWithShellExecute (System.String args, System.String workingdir, System.String error) (at <e974fadd19844a67bf8bc852be0bee5b>:0)
    UnityEditor.Android.GradleWrapper.WarmupGradle (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingDir, System.String baseCommand) (at <e974fadd19844a67bf8bc852be0bee5b>:0)
    Rethrow as GradleInvokationException: Gradle initialization failed.
    UnityEditor.Android.GradleWrapper.WarmupGradle (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingDir, System.String baseCommand) (at <e974fadd19844a67bf8bc852be0bee5b>:0)
    UnityEditor.Android.PostProcessAndroidPlayer+<>c__DisplayClass5_0.<ExecuteWarmup>b__0 () (at <e974fadd19844a67bf8bc852be0bee5b>:0)
    System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <c9d3ffd4b98649ee9989e1908eaca019>:0)
    System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <c9d3ffd4b98649ee9989e1908eaca019>:0)
    System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <c9d3ffd4b98649ee9989e1908eaca019>:0)
    System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <c9d3ffd4b98649ee9989e1908eaca019>:0)
    System.Threading.ThreadHelper.ThreadStart () (at <c9d3ffd4b98649ee9989e1908eaca019>:0)
    UnityEngine.<>c:<RegisterUECatcher>b__0_0(Object, UnhandledExceptionEventArgs)