- Home /
Help with Exception: Error building Player on Android
Hi Guys, I have had no problems uploading and testing my project onto my HTC Inspire 4g when it was on the 2.2 operating system, But it was upgraded recently to 2.3.3 and now I have not been able to upload my game to the phone and I'm receiving this error message. I'm using Unity Pro 3.2. Developing on Windows 7. Nothing has change in my project settings.
Maybe someone could help me with this error message.
Exception: Error building Player: ArgumentOutOfRangeException: Cannot be negative. Parameter name: length
UnityEditor.BuildPlayerWindow.BuildPlayerWithDefaultSettings (Boolean askForBuildLocation, BuildOptions forceOptions) (at C:/BuildAgent/work/f724c1acfee760b6/Editor/Mono/BuildPlayerWindow.cs:340) UnityEditor.BuildPlayerWindow.GUIBuildButtons (Boolean enableBuildButton, Boolean enableBuildAndRunButton, Boolean canInstallInBuildFolder) (at C:/BuildAgent/work/f724c1acfee760b6/Editor/Mono/BuildPlayerWindow.cs:939) UnityEditor.BuildPlayerWindow.ShowBuildTargetSettings () (at C:/BuildAgent/work/f724c1acfee760b6/Editor/Mono/BuildPlayerWindow.cs:913) UnityEditor.BuildPlayerWindow.OnGUI () (at C:/BuildAgent/work/f724c1acfee760b6/Editor/Mono/BuildPlayerWindow.cs:696) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/BuildAgent/work/f724c1acfee760b6/Editor/Mono/GUI/DockArea.cs:213) UnityEditor.HostView.Invoke (System.String methodName) (at C:/BuildAgent/work/f724c1acfee760b6/Editor/Mono/GUI/DockArea.cs:206) UnityEditor.HostView.OnGUI () (at C:/BuildAgent/work/f724c1acfee760b6/Editor/Mono/GUI/DockArea.cs:107)
As far as I know I have all the current drivers and SDK packages. Does anybody have any idea why this is happening or how to fix it? One more thing. While I'm building my game I noticed it gives the warning right when the program is " ...looking for a suitable android device" I made sure that my SDK manager had the proper device settings which for my phone's OS is 2.3.3 level 10. It was on 2.2 level 8 but that doesn't work now either.
Any suggestions on how to fix this? Thanx
Your answer
Follow this Question
Related Questions
Error Building Android Project 2 Answers
Unity 2017.3 Android IL2CPP ArgumentNullException 2 Answers
Android project build is failing 1 Answer
Error build android app 1 Answer