UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0020e] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:181
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:88
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Managed to solve my build problem by downgrading the SDK. This guy gives a good step by step with links:
After that I also had to downgrade JDK from 9 to 8. Hope it helps!
@crackyourspeakers I had the same problem and solved it by building my game in a different location.
To solve this problem follow these instructions:
- Go to Unity Hub → Installs->Settings (Click on the three dots on the versions)->Add Modules
- Tick the Android Build Support, Android SDK &NDK, and Open JDK.
- Click Done.
- When It is installed Go to Unity and try rendering the game again.
I hope It will work as it works for me.
What worked for me was to first build it as a development build and then do the real one.
Hi,
My problem keep going. please help me. i m going to go crazy.
I tried everything written but it still didn’t work.
you can see the errors in the pictures
Any other ideas?
thanks everyone
1.png
2.png
I tried several methods to solve it and my solution was to remove the comma in the project folder name. So my tip is to see if there is no different character or accentuation in the project name.
what worked for me was to fully close unity and then reopen it again and it then allowed me to build to a new folder I made.
Also, if you have a WebGL or any kind of plugin, please check for errors/mistakes.
As i forgot to add " , " in my WebGLplugin.jslib file.
I was building a vr game for oculus if you are doing the same I just downloaded the oculus integration for the unity asset store then after I imported that the oculus tab should appear at the top of your project, then go to your project settings and delete/disable ALL open XR plugins then go to the oculus tab from before and click the first option it should be OVR build or something click that then click build and you can build your project on there. I really hope I helped.
I tried everything you all said and I got another error in this one here is what is says
UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <1e8c82ffe64a4e1d8e997fa7e5933f70>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <1e8c82ffe64a4e1d8e997fa7e5933f70>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)