Error when building in WebGL: "UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors"
I have been using Unity and building to WebGL on my Windows PC fine. Recently I switched over to a Ubuntu/Linux laptop but when I try to build to WebGL I get some errors. When I build a standalone executable it works fine.
Steps to reproduce:
1. Create a project
2. Upload the project to the cloud
3. Install unity on a different computer
4. Download the project from the cloud
5. Attempt to build the same project to WebGL from the other computer
I have tried:
1. Reload/re-import all assets
2. Changing build path 3. Restarting editor
When I do this, the build fails with 3 error messages:
Exception: /home/mason/Unity/Hub/Editor/2019.4.16f1/Editor/Data/il2cpp/build/deploy/net471/il2cpp.exe did not run properly! Full error message is very long
Build completed with a result of 'Failed' in 45 seconds (44850 ms) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002af] in /home/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:194 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in /home/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:95 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)
Your answer
Follow this Question
Related Questions
build failed,build webgl failed 0 Answers
WEBGL build error only on Chrome - Abort(196) 0 Answers
WEBGL Build Not Working! 0 Answers
Webgl build win32 exception 0 Answers
WebGL build exception 0 Answers