Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by PaulaCL · Apr 20, 2012 at 03:05 PM · androiderrorbugerror-building-playerargumentoutofrangeexception

Error building player when run on Asus Transformer Prime with android 4.0.3

Hi everyone, I just got a Asus Transformer Prime which comes with Android Ice Cream Sandwich 4.0.3 and I was excited about testing my Unity apps on it. Unfortunately they don't even compile, and it's an UnityPlayer error.

I don't get any error with other devices which have android 2.3.1, 2.2, 2.1. But with Transformer Prime and android 4.0.3 I get 2 errors. My Unity version is 3.4.2f3.

Error building Player: ArgumentOutOfRangeException: Cannot be negative. Parameter name: length UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() Exception: Error building Player: ArgumentOutOfRangeException: Cannot be negative. Parameter name: length UnityEditor.BuildPlayerWindow.BuildPlayerWithDefaultSettings (Boolean askForBuildLocation, BuildOptions forceOptions) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:367) UnityEditor.BuildPlayerWindow.BuildPlayerAndRun () (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:291)

Has anyone tested unity with android 4.0.3 Any comment appreciated!

Thanks, Paula.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Bobat · Apr 22, 2012 at 07:42 PM

I figured it out. This issue isn't related to the version of Unity. The problem is that the Asus sync program was constantly re-loading its own version of adb.exe. As long as no other instances of adb.exe are running it works. The solution is to kill or uninstall the program (asusUPCTLoader.exe in this case) that keeps respawning adb.exe.
I’ve seen many other people with other brands of devices complain about this same problem. Other devices will have their own custom programs that spawn adb.exe, fortunately it’s easy to find them. The best way to figure it out is to use ‘Process Explorer’, it's essentially a ‘super’ version task manager that lets you easily inspect all the processes, dlls and handles loaded in the system. This is an extremely valuable tool, no pro dev should be without it. Get it here: http://technet.microsoft.com/en-us/sysinternals/bb896653

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image PaulaCL · Apr 23, 2012 at 07:06 AM 0
Share

Thank you Patrick! It worked :D I stopped asusUPCTLoader.exe and uninstalled AsusSync and now my applications is compiling and executing successfully.

Thanks again. Paula.

avatar image jamie lowes · Jul 05, 2012 at 09:21 PM 0
Share

Had the same thing with a TF300T, uninstalled sync... killed adb process... all works now!

You rule! :D

avatar image
0

Answer by Bobat · Apr 20, 2012 at 04:27 PM

I am runnign Android 4.0.3 on an Asus Transformer TF101 and have exactly the same issue. ,I am running Android 4.0.3 on an Asus Transformer and have excatly the same problem

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by prometheus1021 · Apr 22, 2012 at 10:26 AM

Have you tried on Unity3D 3.5? I also like to know if it can work on Asus Transformer Prime. Thanks!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Stuck on splash screen android 0 Answers

Argument out of Range Exception Error - Parameter Name: Index 1 Answer

Unity stuck at "Creating APK package" 0 Answers

[help] Error building Player: KeyNotFoundException: The given key was not present in the dictionary. 2 Answers

Connect Andorid Phone and get error 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges