- Home /
Create Keystore
How do I go about creating a keystore? I am trying to build my 1st Android app and am competently lost.
Thank You
Answer by thomasw · Feb 21, 2012 at 09:45 AM
This thread might answer your question: http://forum.unity3d.com/threads/62137-Android-Signing
Answer by JigneshKoradiya · Jul 28, 2015 at 09:44 AM
you have to visit this video to understand keystore :
Answer by Rash55 · May 02, 2017 at 05:57 AM
i followed video. after filling information when i click on create key button. it shows error:
Unable to create key in keystore. Please make sure the location and password of the keystore is correct. See the Console for more details.
UnityEditor.Android.CommandInvokationFailure: Unable to create key in keystore. Please make sure the location and password of the keystore is correct. See the Console for more details. C:/Program Files (x86)/Java/jdk1.8.0_111\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="C:/Users/HP/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[ Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at SDKMain.main(SDKMain.java:129) Caused by: java.lang.IllegalArgumentException: invalid date string: Unparseable date: "glghflgfihikGMT+00:00" at org.bouncycastle.asn1.DERUTCTime.(Unknown Source) at org.bouncycastle.asn1.x509.Time.(Unknown Source) at org.bouncycastle.x509.X509V3CertificateGenerator.setNotBefore(Unknown Source) at UnityKeyToolGenKey.(UnityKeyToolGenKey.java:87) at UnityKeyToolGenKey.main(UnityKeyToolGenKey.java:29) ... 5 more ] stdout[
] at UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in :0 at UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in :0 at UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in :0 UnityEditor.HostView:OnGUI()
how to solve this. please help.
Either the location you are trying to save your keystore file in is not accessible to unity (Try running unity as Admnistrator) or your passwords are not matching or your password contains less then 8 characters
This seems to be the exact same issue as this question. Somehow Java tries to parse the string:
"glghflgfihikG$$anonymous$$T+00:00"
as date which of course results in the thrown "IllegalArgumentException: invalid date string: Unparseable date". However it's not clear what causes this strange problem. $$anonymous$$aybe you use a strange Java version (at least it's the same as in the other question), or it's something else specific to your setup (hardware, OS, Unity version, ...).
So you should try updating your Java installation and make sure your Android SD$$anonymous$$ is up-to-date as well.
You posted this as answer to this question which is already 6 years old. Answers should answer the question and not asking another different question. If you have a question you should **Ask a Question**
Answer by Bryan1598 · Jul 25, 2018 at 12:09 PM
Click Build (ALT+B) > Generate Signed APK... Click Create new..(ALT+C) Browse Key store path (SHIFT+ENTER) > Select Path > Enter name > OK. Fill the detail about your .jks/keystore file. Next. Your file.
Answer by KingKong320 · Aug 06, 2018 at 09:45 AM
check this link.
https://answers.unity.com/questions/403985/building-for-android.html
Your answer
Follow this Question
Related Questions
WHY WON'T MY GAME LOAD ON MY DEVICE? 0 Answers
Android publishing process alias 2 Answers
Android Failled to Install 1 Answer