x


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

more ▼

asked Sep 30 '11 at 05:06 AM

DFiable gravatar image

DFiable
141 43 54 55

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

I had a similar Issue, I reinstalled the Java SDK, rebooted and it worked

more ▼

answered Feb 14 at 12:16 AM

digimbyte gravatar image

digimbyte
1 2

(comments are locked)
10|3000 characters needed characters left

I fixed it. I updated my HTC phone driver and rebooted my computer. Its working. Thanx anyway.

more ▼

answered Sep 30 '11 at 06:01 AM

DFiable gravatar image

DFiable
141 43 54 55

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2451
x1937
x297
x128

asked: Sep 30 '11 at 05:06 AM

Seen: 2494 times

Last Updated: Feb 14 at 12:16 AM