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. Dismiss Notice

Bug build stuck in all my games multiple Unity versions

Discussion in 'Android' started by islamagdy111, Aug 12, 2023.

  1. islamagdy111

    islamagdy111

    Joined:
    Oct 29, 2019
    Posts:
    23
    I can't build any of my games anymore for months.. I tried to change API target, updated SDK, JDK, Gradle.
    I almost did everything I found on the internet.
    for example one of my games using Unity 2021.3.25f1

    First Log error:
    Starting a Gradle Daemon, 5 incompatible Daemons could not be reused, use --status for details
    > Configure project :launcher
    WARNING: The option setting 'android.enableR8=false' is deprecated.
    It will be removed in version 5.0 of the Android Gradle plugin.
    You will no longer be able to disable R8
    Build-tool 33.0.0 is missing DX at C:\Program Files\2020.3.30f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\33.0.0\dx.bat
    File C:\Users\Islamagdy\.android\repositories.cfg could not be loaded.
    Build-tool 33.0.0 is missing DX at C:\Program Files\2020.3.30f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\33.0.0\dx.bat
    0x00007ff6d90bbdec (Unity) StackWalker::GetCurrentCallstack
    0x00007ff6d90c31e9 (Unity) StackWalker::ShowCallstack
    0x00007ff6d9e2d74c (Unity) GetStacktrace
    0x00007ff6da87a5e3 (Unity) DebugStringToFile
    0x00007ff6d924d846 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    0x000002482f31364b (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    0x000002482f31357b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    0x000002482f3132c0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
    0x00000248876224b5 (Mono JIT Code) UnityEngine.Debug:LogError (object)
    0x00000248876221bb (Mono JIT Code) UnityEditor.Android.GradleInvokationException:parseAndShowException ()
    0x000002482f30c51b (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
    0x0000024886b88fab (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:postProcess (UnityEditor.BuildTarget,string,string,string,string,string,string,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
    0x0000024886b8818b (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    0x0000024886b87c7a (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
    0x0000024886b87fa9 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
    0x00007fffd2cdf1e0 (mono-2.0-bdwgc) [mini-runtime.c:2849] mono_jit_runtime_invoke
    0x00007fffd2c62ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    0x00007fffd2c6bb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    0x00007ff6d8fffa44 (Unity) scripting_method_invoke
    0x00007ff6d8ffad21 (Unity) ScriptingInvocation::Invoke
    0x00007ff6daac457d (Unity) CallMono
    0x00007ff6daacb441 (Unity) PostprocessPlayer
    0x00007ff6daac6d9d (Unity) DoBuildPlayer_PostBuild
    0x00007ff6daac5680 (Unity) DoBuildPlayer
    0x00007ff6daaba70f (Unity) BuildPlayer
    0x00007ff6da43df2f (Unity) BuildPipeline::BuildPlayerInternalNoCheck
    0x00007ff6da1d7aaa (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
    0x00000247cc556f6a (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,UnityEditor.BuildOptions,string[],bool)
    0x00000247cc55680b (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    0x00000247cc55397b (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    0x00000247cc553483 (Mono JIT Code) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool)
    0x000002482efd0d4b (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform)
    0x000002482efc5123 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    0x000002482efbd7b3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
    0x000002475649af33 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
    0x000002475649ace3 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect)
    0x0000024756491443 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
    0x000002475640a120 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    0x000002475640926b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    0x00000247567c18db (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    0x00000247567c1763 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    0x00000247567c107b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    0x00000247567beaa3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    0x00000247cc5beb2b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
    0x00000247cc5aca98 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    0x00000247567bc193 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x00000247cc5aafae (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    0x00000247cc5aab43 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x00000247cc5afb43 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEventQueue ()
    0x00000247cc5ae4b3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
    0x00000247cc5ae41b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    0x00000247cc5aadd3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x00000247cc5aa603 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    0x00000247cc5aa49b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    0x0000024857b8e66b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    0x0000024857b8e10b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    0x0000024857b8decf (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:processEvent (int,intptr)
    0x0000024857b8ddeb (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    0x0000024857b8dc4d (Mono JIT Code) UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
    0x0000024857b8dcfe (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    0x00007fffd2cdf1e0 (mono-2.0-bdwgc) [mini-runtime.c:2849] mono_jit_runtime_invoke
    0x00007fffd2c62ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    0x00007fffd2c6bb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    0x00007ff6d8fffa44 (Unity) scripting_method_invoke
    0x00007ff6d8ffad21 (Unity) ScriptingInvocation::Invoke
    0x00007ff6d8ff4b15 (Unity) ScriptingInvocation::Invoke<void>
    0x00007ff6d82c5aaa (Unity) Scripting::UnityEngine::GUIUtilityProxy::processEvent
    0x00007ff6d9917ec6 (Unity) GUIView::processRetainedMode
    0x00007ff6d9e63492 (Unity) GUIView::OnInputEvent
    0x00007ff6d9917db8 (Unity) GUIView::processInputEvent
    0x00007ff6d9e64637 (Unity) GUIView::processEventMessages
    0x00007ff6d9e5e213 (Unity) GUIView::GUIViewWndProc
    0x00007ff85a9ee858 (USER32) CallWindowProcW
    0x00007ff85a9ee299 (USER32) DispatchMessageW
    0x00007ff6d9e33da6 (Unity) MainMessageLoop
    0x00007ff6d9e37f41 (Unity) WinMain
    0x00007ff6db4c944e (Unity) __scrt_common_main_seh
    0x00007ff85a027614 (KERNEL32) BaseThreadInitThunk
    0x00007ff85c0026b1 (ntdll) RtlUserThreadStart
    _____________________________________________
    Second Log error:
    FAILURE: Build failed with an exception.
    * What went wrong:
    Could not determine the dependencies of task ':launcher:bundleReleaseResources'.
    > Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager.
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    * Get more help at https://help.gradle.org
    BUILD FAILED in 5s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    0x00007ff6d90bbdec (Unity) StackWalker::GetCurrentCallstack
    0x00007ff6d90c31e9 (Unity) StackWalker::ShowCallstack
    0x00007ff6d9e2d74c (Unity) GetStacktrace
    0x00007ff6da87a5e3 (Unity) DebugStringToFile
    0x00007ff6d924d846 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    0x000002482f31364b (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    0x000002482f31357b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    0x000002482f3132c0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
    0x00000248876224b5 (Mono JIT Code) UnityEngine.Debug:LogError (object)
    0x00000248876221bb (Mono JIT Code) UnityEditor.Android.GradleInvokationException:parseAndShowException ()
    0x000002482f30c51b (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
    0x0000024886b88fab (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:postProcess (UnityEditor.BuildTarget,string,string,string,string,string,string,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
    0x0000024886b8818b (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    0x0000024886b87c7a (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
    0x0000024886b87fa9 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
    0x00007fffd2cdf1e0 (mono-2.0-bdwgc) [mini-runtime.c:2849] mono_jit_runtime_invoke
    0x00007fffd2c62ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    0x00007fffd2c6bb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    0x00007ff6d8fffa44 (Unity) scripting_method_invoke
    0x00007ff6d8ffad21 (Unity) ScriptingInvocation::Invoke
    0x00007ff6daac457d (Unity) CallMono
    0x00007ff6daacb441 (Unity) PostprocessPlayer
    0x00007ff6daac6d9d (Unity) DoBuildPlayer_PostBuild
    0x00007ff6daac5680 (Unity) DoBuildPlayer
    0x00007ff6daaba70f (Unity) BuildPlayer
    0x00007ff6da43df2f (Unity) BuildPipeline::BuildPlayerInternalNoCheck
    0x00007ff6da1d7aaa (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
    0x00000247cc556f6a (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,UnityEditor.BuildOptions,string[],bool)
    0x00000247cc55680b (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    0x00000247cc55397b (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    0x00000247cc553483 (Mono JIT Code) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool)
    0x000002482efd0d4b (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform)
    0x000002482efc5123 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    0x000002482efbd7b3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
    0x000002475649af33 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
    0x000002475649ace3 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect)
    0x0000024756491443 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
    0x000002475640a120 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    0x000002475640926b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    0x00000247567c18db (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    0x00000247567c1763 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    0x00000247567c107b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    0x00000247567beaa3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    0x00000247cc5beb2b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
    0x00000247cc5aca98 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    0x00000247567bc193 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x00000247cc5aafae (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    0x00000247cc5aab43 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x00000247cc5afb43 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEventQueue ()
    0x00000247cc5ae4b3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
    0x00000247cc5ae41b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    0x00000247cc5aadd3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x00000247cc5aa603 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    0x00000247cc5aa49b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    0x0000024857b8e66b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    0x0000024857b8e10b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    0x0000024857b8decf (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:processEvent (int,intptr)
    0x0000024857b8ddeb (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    0x0000024857b8dc4d (Mono JIT Code) UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
    0x0000024857b8dcfe (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    0x00007fffd2cdf1e0 (mono-2.0-bdwgc) [mini-runtime.c:2849] mono_jit_runtime_invoke
    0x00007fffd2c62ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    0x00007fffd2c6bb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    0x00007ff6d8fffa44 (Unity) scripting_method_invoke
    0x00007ff6d8ffad21 (Unity) ScriptingInvocation::Invoke
    0x00007ff6d8ff4b15 (Unity) ScriptingInvocation::Invoke<void>
    0x00007ff6d82c5aaa (Unity) Scripting::UnityEngine::GUIUtilityProxy::processEvent
    0x00007ff6d9917ec6 (Unity) GUIView::processRetainedMode
    0x00007ff6d9e63492 (Unity) GUIView::OnInputEvent
    0x00007ff6d9917db8 (Unity) GUIView::processInputEvent
    0x00007ff6d9e64637 (Unity) GUIView::processEventMessages
    0x00007ff6d9e5e213 (Unity) GUIView::GUIViewWndProc
    0x00007ff85a9ee858 (USER32) CallWindowProcW
    0x00007ff85a9ee299 (USER32) DispatchMessageW
    0x00007ff6d9e33da6 (Unity) MainMessageLoop
    0x00007ff6d9e37f41 (Unity) WinMain
    0x00007ff6db4c944e (Unity) __scrt_common_main_seh
    0x00007ff85a027614 (KERNEL32) BaseThreadInitThunk
    0x00007ff85c0026b1 (ntdll) RtlUserThreadStart
    _____________________________________________
    Third Log error:
    CommandInvokationFailure: Gradle build failed.
    C:\Program Files\2020.3.30f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "E:\Unity Projects\Assets\gradle\gradle-6.1.1\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"
    stderr[
    FAILURE: Build failed with an exception.
    * What went wrong:
    Could not determine the dependencies of task ':launcher:bundleReleaseResources'.
    > Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager.
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    * Get more help at https://help.gradle.org
    BUILD FAILED in 5s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    ]
    stdout[
    Starting a Gradle Daemon, 5 incompatible Daemons could not be reused, use --status for details
    > Configure project :launcher
    WARNING: The option setting 'android.enableR8=false' is deprecated.
    It will be removed in version 5.0 of the Android Gradle plugin.
    You will no longer be able to disable R8
    Build-tool 33.0.0 is missing DX at C:\Program Files\2020.3.30f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\33.0.0\dx.bat
    File C:\Users\Islamagdy\.android\repositories.cfg could not be loaded.
    Build-tool 33.0.0 is missing DX at C:\Program Files\2020.3.30f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\33.0.0\dx.bat
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <762caba6f98a4d7e9d56f7b5bd6e35d6>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <762caba6f98a4d7e9d56f7b5bd6e35d6>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <762caba6f98a4d7e9d56f7b5bd6e35d6>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <762caba6f98a4d7e9d56f7b5bd6e35d6>:0)
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <762caba6f98a4d7e9d56f7b5bd6e35d6>:0)
    Rethrow as GradleInvokationException: Gradle build failed
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <762caba6f98a4d7e9d56f7b5bd6e35d6>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <762caba6f98a4d7e9d56f7b5bd6e35d6>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <762caba6f98a4d7e9d56f7b5bd6e35d6>:0)
    Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <762caba6f98a4d7e9d56f7b5bd6e35d6>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <762caba6f98a4d7e9d56f7b5bd6e35d6>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <762caba6f98a4d7e9d56f7b5bd6e35d6>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <762caba6f98a4d7e9d56f7b5bd6e35d6>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <68089899e4c84456bfc1de3436accf4a>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
    _____________________________________________
    Fourth Log error:
    Build completed with a result of 'Failed' in 125 seconds (124965 ms)
    0x00007ff6d90bbdec (Unity) StackWalker::GetCurrentCallstack
    0x00007ff6d90c31e9 (Unity) StackWalker::ShowCallstack
    0x00007ff6d9e2d74c (Unity) GetStacktrace
    0x00007ff6da87a5e3 (Unity) DebugStringToFile
    0x00007ff6d924d846 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    0x000002482f31364b (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    0x000002482f31357b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    0x000002482f3132c0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
    0x00000248876224b5 (Mono JIT Code) UnityEngine.Debug:LogError (object)
    0x00000247cc556b33 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    0x00000247cc55397b (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    0x00000247cc553483 (Mono JIT Code) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool)
    0x000002482efd0d4b (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform)
    0x000002482efc5123 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    0x000002482efbd7b3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
    0x000002475649af33 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
    0x000002475649ace3 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect)
    0x0000024756491443 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
    0x000002475640a120 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    0x000002475640926b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    0x00000247567c18db (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    0x00000247567c1763 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    0x00000247567c107b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    0x00000247567beaa3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    0x00000247cc5beb2b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
    0x00000247cc5aca98 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    0x00000247567bc193 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x00000247cc5aafae (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    0x00000247cc5aab43 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x00000247cc5afb43 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEventQueue ()
    0x00000247cc5ae4b3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
    0x00000247cc5ae41b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    0x00000247cc5aadd3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x00000247cc5aa603 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    0x00000247cc5aa49b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    0x0000024857b8e66b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    0x0000024857b8e10b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    0x0000024857b8decf (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:processEvent (int,intptr)
    0x0000024857b8ddeb (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    0x0000024857b8dc4d (Mono JIT Code) UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
    0x0000024857b8dcfe (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    0x00007fffd2cdf1e0 (mono-2.0-bdwgc) [mini-runtime.c:2849] mono_jit_runtime_invoke
    0x00007fffd2c62ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    0x00007fffd2c6bb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    0x00007ff6d8fffa44 (Unity) scripting_method_invoke
    0x00007ff6d8ffad21 (Unity) ScriptingInvocation::Invoke
    0x00007ff6d8ff4b15 (Unity) ScriptingInvocation::Invoke<void>
    0x00007ff6d82c5aaa (Unity) Scripting::UnityEngine::GUIUtilityProxy::processEvent
    0x00007ff6d9917ec6 (Unity) GUIView::processRetainedMode
    0x00007ff6d9e63492 (Unity) GUIView::OnInputEvent
    0x00007ff6d9917db8 (Unity) GUIView::processInputEvent
    0x00007ff6d9e64637 (Unity) GUIView::processEventMessages
    0x00007ff6d9e5e213 (Unity) GUIView::GUIViewWndProc
    0x00007ff85a9ee858 (USER32) CallWindowProcW
    0x00007ff85a9ee299 (USER32) DispatchMessageW
    0x00007ff6d9e33da6 (Unity) MainMessageLoop
    0x00007ff6d9e37f41 (Unity) WinMain
    0x00007ff6db4c944e (Unity) __scrt_common_main_seh
    0x00007ff85a027614 (KERNEL32) BaseThreadInitThunk
    0x00007ff85c0026b1 (ntdll) RtlUserThreadStart
    _____________________________________________
    Fifth Log error:
    UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <68089899e4c84456bfc1de3436accf4a>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <68089899e4c84456bfc1de3436accf4a>:0
    0x00007ff6d90bbdec (Unity) StackWalker::GetCurrentCallstack
    0x00007ff6d90c31e9 (Unity) StackWalker::ShowCallstack
    0x00007ff6d9e2d74c (Unity) GetStacktrace
    0x00007ff6da87a5e3 (Unity) DebugStringToFile
    0x00007ff6d924d846 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    0x000002482f31364b (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    0x000002482f31357b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    0x000002482f3132c0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
    0x00000248876224b5 (Mono JIT Code) UnityEngine.Debug:LogError (object)
    0x00000247cc5539eb (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    0x00000247cc553483 (Mono JIT Code) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool)
    0x000002482efd0d4b (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform)
    0x000002482efc5123 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    0x000002482efbd7b3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
    0x000002475649af33 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
    0x000002475649ace3 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect)
    0x0000024756491443 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
    0x000002475640a120 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    0x000002475640926b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    0x00000247567c18db (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    0x00000247567c1763 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    0x00000247567c107b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    0x00000247567beaa3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    0x00000247cc5beb2b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
    0x00000247cc5aca98 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    0x00000247567bc193 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x00000247cc5aafae (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    0x00000247cc5aab43 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x00000247cc5afb43 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEventQueue ()
    0x00000247cc5ae4b3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
    0x00000247cc5ae41b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    0x00000247cc5aadd3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x00000247cc5aa603 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    0x00000247cc5aa49b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    0x0000024857b8e66b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    0x0000024857b8e10b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    0x0000024857b8decf (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:processEvent (int,intptr)
    0x0000024857b8ddeb (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    0x0000024857b8dc4d (Mono JIT Code) UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
    0x0000024857b8dcfe (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    0x00007fffd2cdf1e0 (mono-2.0-bdwgc) [mini-runtime.c:2849] mono_jit_runtime_invoke
    0x00007fffd2c62ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    0x00007fffd2c6bb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    0x00007ff6d8fffa44 (Unity) scripting_method_invoke
    0x00007ff6d8ffad21 (Unity) ScriptingInvocation::Invoke
    0x00007ff6d8ff4b15 (Unity) ScriptingInvocation::Invoke<void>
    0x00007ff6d82c5aaa (Unity) Scripting::UnityEngine::GUIUtilityProxy::processEvent
    0x00007ff6d9917ec6 (Unity) GUIView::processRetainedMode
    0x00007ff6d9e63492 (Unity) GUIView::OnInputEvent
    0x00007ff6d9917db8 (Unity) GUIView::processInputEvent
    0x00007ff6d9e64637 (Unity) GUIView::processEventMessages
    0x00007ff6d9e5e213 (Unity) GUIView::GUIViewWndProc
    0x00007ff85a9ee858 (USER32) CallWindowProcW
    0x00007ff85a9ee299 (USER32) DispatchMessageW
    0x00007ff6d9e33da6 (Unity) MainMessageLoop
    0x00007ff6d9e37f41 (Unity) WinMain
    0x00007ff6db4c944e (Unity) __scrt_common_main_seh
    0x00007ff85a027614 (KERNEL32) BaseThreadInitThunk
    0x00007ff85c0026b1 (ntdll) RtlUserThreadStart
    __________________________________________________

    please help.............
    thanks in advance.
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,659
    You're saying you're using Unity 2021.3.25f1, but the SDK used in error is from Unity 2020?
     
  3. islamagdy111

    islamagdy111

    Joined:
    Oct 29, 2019
    Posts:
    23
    Sorry, my mistake.. in this game I'm using Unity 2020.3.30f1.

    there are 2 other games using 2021.3.25f1 and 2022.3.6f1. can't build any of them anymore, I think it may be the same problem in all my games.