Gradle Build Failed Unity.Android.Gradle.AndroidGradle..ctor (System.String gradleLauncherPath, System.Int32 jvmHeapSize) 没有信息的错误

问题描述 投票:0回答:0

我目前正在用广告(UnityAds)玩我的游戏。在构建过程中,我收到了这些错误:
enter image description here

在控制台之前,我遇到了更多错误,除了尖锐的错误(我有一个问题)。我通过在 Edit>Prefereces>External Tools 中将 gradle version 更改为 6.1.1 解决了这个问题,现在它起作用了我只有 2 个错误没有告诉我正确的信息。我怎样才能获得有关此问题的信息来解决它?

第一个错误:

Exception: Gradle install not valid
Unity.Android.Gradle.AndroidGradle..ctor (System.String gradleLauncherPath, System.Int32 jvmHeapSize) (at <2a8f60cb57774be1835a1afee958dc72>:0)
UnityEditor.Android.GradleWrapper.CreateGradleInstance () (at <8b5e5c27dd23466cbbae54c94c729526>:0)
UnityEditor.Android.PostProcessAndroidPlayer.ExecuteWarmup (System.String stagingArea) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput buildProgramOutput) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <8b5e5c27dd23466cbbae54c94c729526>: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 <42a64fd733d9417da1ea3a757ad9a96d>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

第二个错误:

Build completed with a result of 'Failed' in 49 seconds (49332 ms)
0x00007ff6a9c198ad (Unity) StackWalker::GetCurrentCallstack
0x00007ff6a9c20469 (Unity) StackWalker::ShowCallstack
0x00007ff6aaba4883 (Unity) GetStacktrace
0x00007ff6ab24615d (Unity) DebugStringToFile
0x00007ff6a8d6f5c2 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x0000023838f3e453 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x0000023838f3e36b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x00000238104d6e10 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x000002380cc1ba75 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x000002381311a30b (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x0000023813115fb3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x0000023838de6aa3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
0x0000023838dd3c13 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x0000023838d7e743 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
0x0000023589f2f85a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x0000023589f2f673 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)
0x0000023589f20afb (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x0000023589f058f7 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x0000023589f049bb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x0000023818c46acb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x0000023818c46933 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x0000023818c4647b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x0000023818c46333 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x0000023803c061bb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
0x0000023803bee5d8 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
0x0000023818c43813 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000023803bec7de (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x0000023803bec2db (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000023803bf25db (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x0000023803bf0923 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x0000023803bf085b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
0x0000023803bec563 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000023803bebc13 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x0000023803beba8b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x0000023589eb0403 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x0000023804d8ff13 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x0000023804d8fccf (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x0000023804d8fbeb (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x0000023804d8fa3d (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x0000023804d8faf6 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ffb8a85feb4 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke 
0x00007ffb8a79e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke 
0x00007ffb8a79e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke 
0x00007ff6a9b3e274 (Unity) scripting_method_invoke
0x00007ff6a9b1db24 (Unity) ScriptingInvocation::Invoke
0x00007ff6a9b18735 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff6a9c6290a (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff6aa683f38 (Unity) GUIView::ProcessRetainedMode
0x00007ff6aabd5071 (Unity) GUIView::OnInputEvent
0x00007ff6aa683d4a (Unity) GUIView::ProcessInputEvent
0x00007ff6aabd5e8d (Unity) GUIView::ProcessEventMessages
0x00007ff6aabcfbd9 (Unity) GUIView::GUIViewWndProc
0x00007ffbfacde7e8 (USER32) CallWindowProcW
0x00007ffbfacde229 (USER32) DispatchMessageW
0x00007ff6aabaa8a3 (Unity) MainMessageLoop
0x00007ff6aabaf2eb (Unity) WinMain
0x00007ff6abf6484e (Unity) __scrt_common_main_seh
0x00007ffbfb3f7614 (KERNEL32) BaseThreadInitThunk
0x00007ffbfc0026a1 (ntdll) RtlUserThreadStart

我正在使用 Unity 2021.3.18f1
我试过 IL2CPP 和 Mono2x - 没用

c# unity3d gradle
© www.soinside.com 2019 - 2024. All rights reserved.