🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Error while building game : Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Started by
1 comment, last by vishesh1 4 years, 5 months ago

Hey everyone , i am new in unity and every-time i tried to build my project it shows these 3 error. i even tried to build an empty project without anything still i am getting these errors

error 1:-

ArgumentNullException: Value cannot be null. Parameter name: path1 System.IO.Path.Combine (System.String path1, System.String path2) (at <567df3e0919241ba98db88bec4c6696f>:0) UnityEditor.Utils.Paths.Combine (System.String[] components) (at C:/buildslave/unity/build/Editor/Mono/Utils/Paths.cs:29) UnityEditor.Android.AndroidGradleRoot.GetGradleLaunchJarPath (System.String directory) (at <502f1b7df2d7430696af84c6f02852ed>:0) UnityEditor.Android.GradleWrapper.GetBaseCommand (System.Int32 jvmHeapSize) (at <502f1b7df2d7430696af84c6f02852ed>:0) UnityEditor.Android.PostProcessAndroidPlayer.ExecuteWarmup (System.String stagingArea) (at <502f1b7df2d7430696af84c6f02852ed>: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 <502f1b7df2d7430696af84c6f02852ed>:0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <502f1b7df2d7430696af84c6f02852ed>: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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281) UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

error 2:-

Build completed with a result of 'Failed' UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

error 3:-

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:95 UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

can someone please help me on this , Thank you

Advertisement

Try restarting Unity.

Try building for different platform. Use whatever platform you are on first. Looks like you are trying to build for Android.

I read this on the internet about this error for Android build, not sure… “Go to Android PlayerSettings Enable Auto Graphics API ”

Reinstall if all else fails.

🙂🙂🙂🙂🙂<←The tone posse, ready for action.

@fleabay Thanks but,

while i am able to build for windows , this error is only coming when i try to build for android,

i tried that Auto Graphic API still the same error .

This topic is closed to new replies.

Advertisement