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 dede_touchten · Dec 08, 2012 at 04:19 PM · androidapkkeystoreargumentexceptionsign

Error in building and signing APK.

Just today, I have a serious problem where I cannot build any APK for Android. Whenever I tried to build an unsigned (debug) APK, there always an error message saying:

 Error building Player: ArgumentException: An empty file name is not valid.

And whenever I tried to sign the app with a keystore that I generated before, after I filled the password and clicked the "Alias" drop down menu, there always this error message:

 ArgumentException: An empty file name is not valid.
 System.IO.FileSystemInfo.CheckPath (System.String path)
 System.IO.DirectoryInfo..ctor (System.String path, Boolean simpleOriginalPath)
 System.IO.DirectoryInfo..ctor (System.String path)
 (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:.ctor (string)
 UnityEditor.AndroidKeystoreWindow.findPathWildcard (System.String str)
 UnityEditor.AndroidKeystoreWindow.LocateJDKbin ()
 UnityEditor.AndroidKeystoreWindow.setupKeytool ()
 UnityEditor.AndroidKeystoreWindow.GetAvailableKeys (System.String keystore, System.String storepass)
 UnityEditor.PlayerSettingsEditor.PublishSectionGUI (Int32 selectedPlatform)
 UnityEditor.PlayerSettingsEditor.OnInspectorGUI ()
 UnityEditor.InspectorWindow.DrawEditors (Boolean isRepaintEvent, UnityEditor.Editor[] editors, Boolean eyeDropperDirty)
 UnityEditor.InspectorWindow.OnGUI ()
 System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)

This also the case when I tried to build create a new keystore, after I filled in all the details like name, organization, validity etc, the same error message appear after clicking the "Create Key" button.

I didn't do anything with the project and I knew that the keystore works properly as I just used it yesterday.

I'm using Mac OSX Mountain Lion 10.8.2 and Unity Pro 3.5.6f4. Not sure what happened.. I don't want to end up reformatting my mac.

Thanks in advance.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by naticis · Dec 09, 2012 at 06:48 AM

Uninstall JDK 7 and install JDK 6. I had a similar problem with Java JDK 1.7, I'm using JDk 6.27 on Windows 7 and everything works fine.

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 dede_touchten · Dec 09, 2012 at 07:37 AM 0
Share

Thanks for the answer, but it doesn't work. $$anonymous$$ine was actually version 1.6, I even tried to install the JD$$anonymous$$ 1.7.0.9, then revert it back again to 1.6 but still no luck..

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

11 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

Related Questions

App Doesnt install on device (Android) 1 Answer

Android signed APK Installation failed 1 Answer

Keystore was tampered with, or password was incorrect 0 Answers

Failed to sign APK package (Unity 2017) 1 Answer

Package file was not signed correctly. 2 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