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
1
Question by Zanshin · Feb 28, 2013 at 08:19 PM · androidandroid buildsdk

How do I resolve "Error building Player: ArgumentException: An empty file name is not valid." error?

Hey guys,

I'm having some trouble building to Android from my mac book air. I downloaded the SDK and when I try to build, at some time during the process after building the scenes it asks me for the SDK root directory. I browse to it and select it and immediately after I get this error: "Error building Player: ArgumentException: An empty file name is not valid.".

I tried setting the path in preferences too but it still always brings up a window and asks me for the SDK location anyway.

Two of my friends that are working on the same project are able to build just fine and the settings on mine (platform, player settings, etc) match theirs exactly. One of my friends got a Java install popup the first time he tried, but once he installed it, it worked fine. I didn't even get the popup and even though I manually installed Java it didn't help.

I googled the message and checked out a couple posts with similar issues. One said something about making sure I have no iOS specific plugins (which I don't have) and another mentioned installing Java (which I did already). I've even tried doing a fresh checkout of the project and uninstalled/reinstalled Unity with no success.

I need to get this resolved, any help is appreciated.

Thanks

Comment
Add comment · Show 1
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 Tarlius · Mar 01, 2013 at 06:54 AM 0
Share

Do you not get a stacktrace from the compiler or anything? (Since you bothered to include so much info I would assume you'd include it, but have to ask anyway.)

Did you try reinstalling the SD$$anonymous$$?

(I've not actually deployed on Android, just trying to throw some ideas around)

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by ramonpc · Jun 16, 2013 at 05:30 PM

From the list of causes, mine was needing Java 1.6 (1.7 did not work) on OS X. I downloaded it from http://support.apple.com/kb/DL1572 Beware not to use it for anything else (e.g. browsing) as 1.6 contains known vulnerabilities.

Comment
Add comment · Show 1 · 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 dreamychris · Jun 16, 2013 at 11:52 PM 0
Share

Yeah, this matches my experience (see my answer to related question: http://answers.unity3d.com/questions/408565/how-do-i-resolve-the-error-building-player-argumen.html ).

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

12 People are following this question.

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

Related Questions

Compiling Android game doesn't work out 0 Answers

Invalid Android NDK Directory 2 Answers

Android IL2CPP error in Unity 0 Answers

Cannot build for Android 2 Answers

failed to re-package resources after importing facebook-unity-sdk-7.6.0 0 Answers


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