Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Android Apk build Error

Discussion in 'Editor & General Support' started by bedir07, Nov 17, 2022.

  1. bedir07

    bedir07

    Joined:
    Nov 5, 2019
    Posts:
    2
    Hi Guys its my Errors:
    1:

    Building Library\Bee\artifacts\Android\iz17e\libil2cpp.so failed with output:
    E:/unityprojects/MetaVitrin/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:14252: error: undefined reference to 'JoinChannel'
    E:/unityprojects/MetaVitrin/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:14261: error: undefined reference to 'ChangeMuteState'
    E:/unityprojects/MetaVitrin/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:14270: error: undefined reference to 'FetchTokenInternal'
    E:/unityprojects/MetaVitrin/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:14252: error: undefined reference to 'JoinChannel'
    E:/unityprojects/MetaVitrin/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:14261: error: undefined reference to 'ChangeMuteState'
    E:/unityprojects/MetaVitrin/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:14270: error: undefined reference to 'FetchTokenInternal'
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    0x00007ff7c918758d (Unity) StackWalker::GetCurrentCallstack
    0x00007ff7c918e269 (Unity) StackWalker::ShowCallstack
    0x00007ff7ca0f1023 (Unity) GetStacktrace
    0x00007ff7ca78ef1d (Unity) DebugStringToFile
    0x00007ff7c8394712 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    0x000002249f174603 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    0x000002249f17451b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    0x000002249f174260 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
    0x00000224a353dd45 (Mono JIT Code) UnityEngine.Debug:LogError (object)
    0x0000022405a8cb33 (Mono JIT Code) UnityEditor.Modules.BeeBuildPostprocessor:DefaultResultProcessor (Bee.BeeDriver.NodeResult,bool,bool)
    0x0000022405a8c22b (Mono JIT Code) UnityEditor.Modules.BeeBuildPostprocessor:ReportBuildResults (Bee.BeeDriver.BeeDriverResult)
    0x00000224df9e7ed3 (Mono JIT Code) UnityEditor.Modules.BeeBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs)
    0x00000224df9e783b (Mono JIT Code) UnityEditor.Modules.DefaultBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    0x00000224df9e556b (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    0x00000224df9e4d08 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
    0x00000224df9e5065 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
    0x00007ff91962fe24 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    0x00007ff91956e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    0x00007ff91956e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
    0x00007ff7c90abf84 (Unity) scripting_method_invoke
    0x00007ff7c908b824 (Unity) ScriptingInvocation::Invoke
    0x00007ff7cab01101 (Unity) CallMono
    0x00007ff7cab093b7 (Unity) PostprocessPlayer
    0x00007ff7cab03fbf (Unity) DoBuildPlayer_PostBuild
    0x00007ff7cab01f8e (Unity) DoBuildPlayer
    0x00007ff7caaf608d (Unity) BuildPlayer
    0x00007ff7c8986ad6 (Unity) BuildPipeline::BuildPlayerInternalNoCheck
    0x00007ff7c893b690 (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
    0x000002249653faa7 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool)
    0x000002249650f8d3 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    0x000002249654cca3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    0x0000022496482273 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
    0x00000224964745a3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    0x0000022496466ef3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
    0x000002218749de2a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
    0x000002218749dc83 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)
    0x000002218742d28b (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
    0x000002218741533f (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    0x000002218741456b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    0x000002249d018adb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    0x000002249d018943 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    0x000002249d01848b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    0x000002249d018373 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    0x0000022470d86d2b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
    0x0000022470d6e728 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    0x000002249d014db3 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x0000022470d6c93e (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    0x0000022470d6c43b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x0000022470d72fbb (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEventQueue ()
    0x0000022470d712d3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
    0x0000022470d7120b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    0x0000022470d6c6c3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x0000022470d6be13 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    0x0000022470d6bc8b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    0x0000022470f96bdb (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    0x0000022470f96683 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    0x0000022470f9643f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:processEvent (int,intptr)
    0x0000022470f9635b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    0x0000022470f961ad (Mono JIT Code) UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
    0x0000022470f96266 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    0x00007ff91962fe24 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    0x00007ff91956e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    0x00007ff91956e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
    0x00007ff7c90abf84 (Unity) scripting_method_invoke
    0x00007ff7c908b824 (Unity) ScriptingInvocation::Invoke
    0x00007ff7c9086435 (Unity) ScriptingInvocation::Invoke<void>
    0x00007ff7c91cea6a (Unity) Scripting::UnityEngine::GUIUtilityProxy::processEvent
    0x00007ff7c9bd6508 (Unity) GUIView::processRetainedMode
    0x00007ff7ca12157b (Unity) GUIView::OnInputEvent
    0x00007ff7c9bd631a (Unity) GUIView::processInputEvent
    0x00007ff7ca12254b (Unity) GUIView::processEventMessages
    0x00007ff7ca11c11f (Unity) GUIView::GUIViewWndProc
    0x00007ff96ef0e858 (USER32) CallWindowProcW
    0x00007ff96ef0e299 (USER32) DispatchMessageW
    0x00007ff7ca0f7043 (Unity) MainMessageLoop
    0x00007ff7ca0fba6b (Unity) WinMain
    0x00007ff7cb49b91e (Unity) __scrt_common_main_seh
    0x00007ff96ed574b4 (KERNEL32) BaseThreadInitThunk
    0x00007ff9704c26a1 (ntdll) RtlUserThreadStart

    2:
    Building Library\Bee\artifacts\Android\d8kzr\libil2cpp.so failed with output:
    Library/Bee/artifacts/Android/d8kzr/sjot_bly-CSharp.o: In function `AgoraWebChat_JoinChannel_mFD15DAFF8FEC8D93AE1990FF01064F7D521C7F51':
    E:/unityprojects/MetaVitrin/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:14252: undefined reference to `JoinChannel'
    Library/Bee/artifacts/Android/d8kzr/sjot_bly-CSharp.o: In function `AgoraWebChat_ChangeMuteState_mBFEC4F8949DE1451DD4DCF4BC34685B7E27CD493':
    E:/unityprojects/MetaVitrin/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:14261: undefined reference to `ChangeMuteState'
    Library/Bee/artifacts/Android/d8kzr/sjot_bly-CSharp.o: In function `AgoraWebChat_FetchTokenInternal_m03E7069AB95C64672C7425ACF456158F639B4117':
    E:/unityprojects/MetaVitrin/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:14270: undefined reference to `FetchTokenInternal'
    Library/Bee/artifacts/Android/d8kzr/sjot_bly-CSharp.o: In function `AgoraWebChat_JoinChannel_mFD15DAFF8FEC8D93AE1990FF01064F7D521C7F51':
    E:/unityprojects/MetaVitrin/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:14252: undefined reference to `JoinChannel'
    Library/Bee/artifacts/Android/d8kzr/sjot_bly-CSharp.o: In function `AgoraWebChat_SetMuteState_m7832CB93F5843017F98394F31E8051522B6B7759':
    E:/unityprojects/MetaVitrin/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:14261: undefined reference to `ChangeMuteState'
    Library/Bee/artifacts/Android/d8kzr/sjot_bly-CSharp.o: In function `AgoraWebChat_FetchToken_mE99A80DB626C39DABD5CDCF5EE1E89B132ED6521':
    E:/unityprojects/MetaVitrin/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:14270: undefined reference to `FetchTokenInternal'
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    0x00007ff7c918758d (Unity) StackWalker::GetCurrentCallstack
    0x00007ff7c918e269 (Unity) StackWalker::ShowCallstack
    0x00007ff7ca0f1023 (Unity) GetStacktrace
    0x00007ff7ca78ef1d (Unity) DebugStringToFile
    0x00007ff7c8394712 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    0x000002249f174603 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    0x000002249f17451b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    0x000002249f174260 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
    0x00000224a353dd45 (Mono JIT Code) UnityEngine.Debug:LogError (object)
    0x0000022405a8cb33 (Mono JIT Code) UnityEditor.Modules.BeeBuildPostprocessor:DefaultResultProcessor (Bee.BeeDriver.NodeResult,bool,bool)
    0x0000022405a8c22b (Mono JIT Code) UnityEditor.Modules.BeeBuildPostprocessor:ReportBuildResults (Bee.BeeDriver.BeeDriverResult)
    0x00000224df9e7ed3 (Mono JIT Code) UnityEditor.Modules.BeeBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs)
    0x00000224df9e783b (Mono JIT Code) UnityEditor.Modules.DefaultBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    0x00000224df9e556b (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    0x00000224df9e4d08 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
    0x00000224df9e5065 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
    0x00007ff91962fe24 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    0x00007ff91956e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    0x00007ff91956e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
    0x00007ff7c90abf84 (Unity) scripting_method_invoke
    0x00007ff7c908b824 (Unity) ScriptingInvocation::Invoke
    0x00007ff7cab01101 (Unity) CallMono
    0x00007ff7cab093b7 (Unity) PostprocessPlayer
    0x00007ff7cab03fbf (Unity) DoBuildPlayer_PostBuild
    0x00007ff7cab01f8e (Unity) DoBuildPlayer
    0x00007ff7caaf608d (Unity) BuildPlayer
    0x00007ff7c8986ad6 (Unity) BuildPipeline::BuildPlayerInternalNoCheck
    0x00007ff7c893b690 (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
    0x000002249653faa7 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool)
    0x000002249650f8d3 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    0x000002249654cca3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    0x0000022496482273 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
    0x00000224964745a3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    0x0000022496466ef3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
    0x000002218749de2a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
    0x000002218749dc83 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)
    0x000002218742d28b (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
    0x000002218741533f (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    0x000002218741456b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    0x000002249d018adb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    0x000002249d018943 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    0x000002249d01848b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    0x000002249d018373 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    0x0000022470d86d2b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
    0x0000022470d6e728 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    0x000002249d014db3 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x0000022470d6c93e (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    0x0000022470d6c43b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x0000022470d72fbb (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEventQueue ()
    0x0000022470d712d3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
    0x0000022470d7120b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    0x0000022470d6c6c3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    0x0000022470d6be13 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    0x0000022470d6bc8b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    0x0000022470f96bdb (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    0x0000022470f96683 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    0x0000022470f9643f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:processEvent (int,intptr)
    0x0000022470f9635b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    0x0000022470f961ad (Mono JIT Code) UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
    0x0000022470f96266 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    0x00007ff91962fe24 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    0x00007ff91956e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    0x00007ff91956e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
    0x00007ff7c90abf84 (Unity) scripting_method_invoke
    0x00007ff7c908b824 (Unity) ScriptingInvocation::Invoke
    0x00007ff7c9086435 (Unity) ScriptingInvocation::Invoke<void>
    0x00007ff7c91cea6a (Unity) Scripting::UnityEngine::GUIUtilityProxy::processEvent
    0x00007ff7c9bd6508 (Unity) GUIView::processRetainedMode
    0x00007ff7ca12157b (Unity) GUIView::OnInputEvent
    0x00007ff7c9bd631a (Unity) GUIView::processInputEvent
    0x00007ff7ca12254b (Unity) GUIView::processEventMessages
    0x00007ff7ca11c11f (Unity) GUIView::GUIViewWndProc
    0x00007ff96ef0e858 (USER32) CallWindowProcW
    0x00007ff96ef0e299 (USER32) DispatchMessageW
    0x00007ff7ca0f7043 (Unity) MainMessageLoop
    0x00007ff7ca0fba6b (Unity) WinMain
    0x00007ff7cb49b91e (Unity) __scrt_common_main_seh
    0x00007ff96ed574b4 (KERNEL32) BaseThreadInitThunk
    0x00007ff9704c26a1 (ntdll) RtlUserThreadStart

    3:
    BuildFailedException: Incremental Player build failed!
    UnityEditor.Modules.BeeBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <5e26277f966d4f80afa5d51573eba699>:0)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <5e26277f966d4f80afa5d51573eba699>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <e974fadd19844a67bf8bc852be0bee5b>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, 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 <5e26277f966d4f80afa5d51573eba699>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)

    I tested it in 3 different versions, my errors are the same ( Unity 2022.2.0b14 , Unity 2021.3.12f1 , Unity 2020.3.41f1)

    Thanks!
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,971
    1. Use the android forum next time
    2. Does it happen in a blank project as well?
    3. Are you using visual studio 2022? If so, the latest .4 version has issues with IL2CPP, maybe roll back a version
     
  3. bedir07

    bedir07

    Joined:
    Nov 5, 2019
    Posts:
    2
    First of all, I apologize for posting in the wrong place.

    no it doesn't happen in empty project,

    I am using visual studio code.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,971
    Delete the Library folder (with unity closed) and the folders created when you build and try again in that case.
    If it still happens compare settings etc with the working project and put scripts/scenes in it untill it breaks
     
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,519
    How to troubleshoot build failures:

    First, make a blank project with a single blank scene and prove that it builds successfully. (sounds like you have already done this... GREAT!)

    If the blank project does NOT build, go fix your Unity installation or your other tools, such as Android SDK, NDK, JDK, etc.

    Until you can build a blank project to the target platform, don't fiddle with anything else.

    Once you can build a blank project, now bisect the problem by bringing over parts of your current project and building it one subsystem at a time, perhaps stubbing things out that might trigger compiler errors.

    Most often things that prevent building are third-party libraries such as Firebase.

    Once you identify the subsystem, go to the documentation for it and make sure you are doing it correctly.

    It may also be helpful to work through a tutorial or two for whatever subsystem is making the build fail.

    Android build not building:

    Recently (circa July 2022) there have been reports of Unity's installer failing to install the Android Tools.

    https://forum.unity.com/threads/cant-build-for-android.1306098/

    Here was how I brought up Unity2020.3.41 and the Android SDK 31 on October 30, 2022:

    https://forum.unity.com/threads/aab...y-2021-3-8-with-jdk-1-8.1322211/#post-8551193