- Home /
Error building Player because scripts had compiler errors
UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player because scripts had compiler errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:187
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Hi Unity Developers! I'm facing this issues and couldn't figure out what I need to fix.. Please suggest any solution and your help would be very appreciated. Thanks in advance!
Have you tried re-importing all assets, seems to have worked for a similar issue. Also can you confirm which target platform are you building it for?
@FernandoHC Hey, thanks for your comment. Yes, I've re-imported all the assets several times already and it didn't fix the issue. Target platform is Android 6.0 (API Level 23) for ODG7. It used to work before.. and somehow the errors are showing up. Sorry that I don't have enough information..
Can you give us more info? Have you checked the android SD$$anonymous$$ size compiler error? Are you able to compile it to any other platform? Can you run the game fine in editor? Have you tried in another version of Unity?
Your answer
![](https://koobas.hobune.stream/wayback/20220612172921im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Error Building Player: Win32Exception. No solution works 1 Answer
Error building Player: CommandInvokationFailure: Failed to re-package resources 3 Answers
[SOLVED] Unable to merge android manifests error while trying to build a Gear VR project 1 Answer
D8: Program type already present: com.facebook.unity.Constants 2 Answers