Search Unity

Question Unity 2020.3.13f1c1 Android Build FAILURE: Build failed with an exception.

Discussion in 'Android' started by playero1, Jul 18, 2021.

  1. playero1

    playero1

    Joined:
    Dec 29, 2020
    Posts:
    1
    Hi! I am new to Unity and coding stuff, and after searched for a lot of information online, I still don't have any clue how to fix this. Help will be very appreciated. Thank you!






    FAILURE: Build failed with an exception.
    * What went wrong:
    A problem occurred configuring project ':launcher'.
    > Could not resolve all artifacts for configuration ':launcher:classpath'.
    > Could not resolve com.android.tools.build:gradle:3.6.0.
    Required by:
    project :launcher
    > Could not resolve com.android.tools.build:gradle:3.6.0.
    > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom'.
    > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom'.
    > Connect to 127.0.0.1:1080 [/127.0.0.1] failed: Connection refused: connect
    > Could not resolve com.android.tools.build:gradle:3.6.0.
    > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom'.
    > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.6.0/gradle-3.6.0.pom'.
    > Connect to 127.0.0.1:1080 [/127.0.0.1] failed: Connection refused: connect
    * 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 19s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    0x00007ff7a699155c (Unity) StackWalker::GetCurrentCallstack
    0x00007ff7a6999939 (Unity) StackWalker::ShowCallstack
    0x00007ff7a7e96e4c (Unity) GetStacktrace
    0x00007ff7a8fad933 (Unity) DebugStringToFile
    0x00007ff7a69fc336 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    0x0000022f881d21db (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    0x0000022f881d210b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    0x0000022f881d1e50 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
    0x0000022f8b977305 (Mono JIT Code) UnityEngine.Debug:LogError (object)
    0x0000022f8b976feb (Mono JIT Code) UnityEditor.Android.GradleInvokationException:parseAndShowException ()
    0x0000022f881c93db (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
    0x0000022f88086b6b (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:postProcess (UnityEditor.BuildTarget,string,string,string,string,string,string,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
    0x0000022f88085d7b (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    0x0000022f8808567a (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
    0x0000022f880859a9 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
    0x00007ff997d0e630 (mono-2.0-bdwgc) [mini-runtime.c:2812] mono_jit_runtime_invoke
    0x00007ff997c92ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    0x00007ff997c9bb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    0x00007ff7a6819954 (Unity) scripting_method_invoke
    0x00007ff7a68122a5 (Unity) ScriptingInvocation::Invoke
    0x00007ff7a92a4d4d (Unity) CallMono
    0x00007ff7a92ab991 (Unity) PostprocessPlayer
    0x00007ff7a92a753d (Unity) DoBuildPlayer_PostBuild
    0x00007ff7a92a5e30 (Unity) DoBuildPlayer
    0x00007ff7a929b0dc (Unity) BuildPlayer
    0x00007ff7a87a7a2f (Unity) BuildPipeline::BuildPlayerInternalNoCheck
    0x00007ff7a876251a (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
    0x0000022f87e762da (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,UnityEditor.BuildOptions,string[],bool)
    0x0000022f87e75adb (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    0x0000022f87e7241b (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    0x0000022f87eb5b33 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform)
    0x0000022f87e922d3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    0x0000022f87e817b3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
    0x0000022f87d2f933 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
    0x0000022f87d2f6a3 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect)
    0x0000022f87d218c3 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
    0x0000022f87d054e0 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    0x0000022f87d046ab (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    0x0000022f87d032db (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    0x0000022f87d03143 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    0x0000022f87d02c9b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    0x0000022f87d02b23 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    0x0000022f87c15e6b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
    0x0000022f87c01b38 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    0x0000022f87d01d83 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x0000022f87bffcbe (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    0x0000022f87bff7b3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x0000022f87c05273 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEventQueue ()
    0x0000022f87c03873 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
    0x0000022f87c037bb (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    0x0000022f87bffa43 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x0000022f87bff183 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    0x0000022f87bfeffb (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    0x0000022f87ce1b3b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    0x0000022f87ce15db (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    0x0000022f87ce139f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:processEvent (int,intptr)
    0x0000022f87ce12bb (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    0x0000022f87ce111d (Mono JIT Code) UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
    0x0000022f87ce11ce (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    0x00007ff997d0e630 (mono-2.0-bdwgc) [mini-runtime.c:2812] mono_jit_runtime_invoke
    0x00007ff997c92ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    0x00007ff997c9bb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    0x00007ff7a6819954 (Unity) scripting_method_invoke
    0x00007ff7a68122a5 (Unity) ScriptingInvocation::Invoke
    0x00007ff7a680ad95 (Unity) ScriptingInvocation::Invoke<void>
    0x00007ff7a4e98add (Unity) Scripting::UnityEngine::GUIUtilityProxy::processEvent
    0x00007ff7a74437f6 (Unity) GUIView::processRetainedMode
    0x00007ff7a7ed8dc5 (Unity) GUIView::OnInputEvent
    0x00007ff7a74436e8 (Unity) GUIView::processInputEvent
    0x00007ff7a7eda2b7 (Unity) GUIView::processEventMessages
    0x00007ff7a7ed1643 (Unity) GUIView::GUIViewWndProc
    0x00007ff9debee858 (user32) CallWindowProcW
    0x00007ff9debee299 (user32) DispatchMessageW
    0x00007ff7a7ea04f6 (Unity) MainMessageLoop
    0x00007ff7a7ea4681 (Unity) WinMain
    0x00007ff7a9cdd3d6 (Unity) __scrt_common_main_seh
    0x00007ff9dee57034 (KERNEL32) BaseThreadInitThunk
    0x00007ff9e0142651 (ntdll) RtlUserThreadStart