- Home /
Build failed with errors. at UnityEditor.BuildPlayer+Default buildMethods how to resolve it ?
I am following Building Unity game for an Android device for the testing tutorial I have followed all the instruction but I am getting this error in the end. from this link https://unity3d.com/learn/tutorials/topics/mobile-touch/building-your-unity-game-android-device-testing
UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors. at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83 UnityEditor.HostView:OnGUI()
I have the same error, I installed Unity 2017.1 and configured Android. I have a simple project, but when I build for android I get this error: "UnityEditor.BuildPlayerWindow+Build$$anonymous$$ethodException: Build failed with errors."
I also get this error with unity editor 2017.1.0f3
I had the same issue. I closed the complier (VS 2017) and then when I wanted to build the project, I changed the folder.
hi, well only got this error. how to fix, got the latest unity 2018.2.18 64 bit pro. driving me nuts, and don't know why this is doing it. did find the strange character and now, don't get this error. pasting below. able to help. please e-mail me via startrekcafe@gmail.com for help. how to fix. pasting below. driving me nuts and never seen this error before. that's prenpreventing me from building. help! Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Answer by mackens85 · Oct 01, 2017 at 10:07 AM
As you have noticed after you click build settings you are prompt to download it in the asset, which unity wouldn't allow to build exe files inside asset. in that case, try building it in a different folder or in desktop. It works fine for me! :D
Thank you, i change the folder and it work! best regards.
Hi, I haven't resolve the issue yet. Did you say to change the folder when you click on "build" button and choose the folder where you have to save the apk file? Because I've tried to do this and it doesn't work. Can you explain to me if i'm doing something wrong?
It worked for me after building in different folder
Answer by sgoyal275 · Aug 06, 2017 at 04:06 AM
when I had this error and "CommandInvokationFailure", I went to the peferences and changed my jdk to 1.8 from 1.7, It worked.
This worked for me as well. Download link for the lazy.
hi, using the nvda and jaws screen reader, and doing this for a school project. did try changing the folder, to the desktop, and got the same error. did fix one error in visual studio, deleted a strange character start of the public method. now only got this gui 32 and 64 bit error. how to fix in visual studio. as unity is not that accessible. my trainer is back on january 7.so have to wait for that. did try googling, never seen that gui process pr 32 and 64 bit, how to fix, unless i find the file, click to load in unity, or a more accessible way to do this in visual studio. frustrated. windows 10 64 bit pro ..1809, jaws 2019, nvda 2018.4 latest stable version using unity 2018.7.2, maybe try updating unity and see if that works, then reload the project. frustrated. any one able to help me out, and how to fix this.
Answer by slake_it · Sep 10, 2017 at 03:30 PM
Try using the build option ( not build & run ) - ( it worked for me )
This worked (clean build) as the issue happened after a unity project upgrade
Answer by SacredAngel · Jan 29, 2018 at 08:45 PM
Got same problem. This is how I solved it: 1.In "tools" directory of android SDK open a file named 'android' and in the list choose all 25-versions - install those packages (Note: this file didn't want to open while my SDK was installed in C-System, so I was supposed to copy whole SDK in another one and it finaly launched ); 2. Install JDK-8, not 9! Even if you have 9-version, download 8 and in Unity in Edit->Preferenses change jdk path to 8-version. After this two steps I finaly resolved my problem. Good luck, hope it will help someone :)
Thanks jdk 8 did it work. I had 10 and i had the same problem
Answer by NextUnity · Jul 23, 2017 at 06:43 AM
If you track the error that bring you to UnityEngineInternal.APIUpdaterRuntimeServices.AddComponent deprecated method.
comment out it then try. hope this will helpful.
Your answer
![](https://koobas.hobune.stream/wayback/20220612130555im_/https://answers.unity.com/themes/thub/images/avi.jpg)