Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug KeyStore Manager: Invalid command keytool-createkeystore

Discussion in 'Android' started by TheCritt, Mar 11, 2024.

  1. TheCritt

    TheCritt

    Joined:
    Apr 9, 2016
    Posts:
    8
    Hi,

    Using Unity 2023.2 version, it's impossible to generate the keystore using the Unity keystore manager, it returns the error:

    "Invalid command keytool-createkeystore"


    It seems like a typo error in Unity (!!), I guess there should be a space character after keytool keyword, full error log:

    Code (CSharp):
    1. CommandInvokationFailure: Unable to create keystore. Please make sure the location of the keystore is valid.
    2. C:\Program Files\Unity\Hub\Editor\2023.2.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -Xmx4096M -Dcom.android.sdkmanager.toolsdir="C:\Program Files\Unity\Hub\Editor\2023.2.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\cmdline-tools\6.0" -Dfile.encoding=UTF8 -jar "C:/Program Files/Unity/Hub/Editor/2023.2.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\sdktools.jar" -
    3.  
    4. Environment Variables:
    5. SHIM_MCCOMPAT = 0x810000001
    6. PROCESSOR_ARCHITECTURE = AMD64
    7. JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2023.2.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
    8. AMPLITUDE_API_KEY_GREENBUCKET_PROD = c86fea37a9e1d3f0878b96e15b111c7c
    9. DriverData = C:\Windows\System32\Drivers\DriverData
    10. USERDOMAIN = ADRIAN-LAPTOP
    11. CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
    12. COMPUTERNAME = ADRIAN-LAPTOP
    13. DEBUG_ENV_VAR = UnityHub
    14. LOGONSERVER = \\ADRIAN-LAPTOP
    15. AMPLITUDE_TOKEN_GREENBUCKET_PROD = yyzPzalJDwrQcYNuOZam0bhKb26WyyhK
    16. AMPLITUDE_API_KEY_YELLOWBUCKET_DEV = 48835b4d1f5e342aefe5f016324d296a
    17. ProgramData = C:\ProgramData
    18. SESSIONNAME = Console
    19. AMPLITUDE_TOKEN_YELLOWBUCKET_PROD = Ph-837Q6GNodAkyc2MRkxVPUcjlIET4d
    20. NVIDIAWHITELISTED = 0x01
    21. RegionCode = EMEA
    22. APPDATA = C:\Users\48884\AppData\Roaming
    23. SystemRoot = C:\WINDOWS
    24. windir = C:\WINDOWS
    25. AMPLITUDE_API_KEY_REDBUCKET_DEV = 46b8b46515e7632fc42a504b72e05fd0
    26. ProgramFiles(x86) = C:\Program Files (x86)
    27. EFC_9620 = 1
    28. ProgramW6432 = C:\Program Files
    29. OS = Windows_NT
    30. PROCESSOR_IDENTIFIER = AMD64 Family 23 Model 96 Stepping 1, AuthenticAMD
    31. HEAP_CLIENT_TOKEN_STAGING = 3786794399
    32. HOMEPATH = \Users\48884
    33. FPS_BROWSER_USER_PROFILE_STRING = Default
    34. AMPLITUDE_TOKEN_REDBUCKET_DEV = U4PSN7S7PuYVRODivvdcFwbu8R6IHGqa
    35. CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_19336_BYGPCLUMIABFDBPM
    36. PROCESSOR_LEVEL = 23
    37. platformcode = KV
    38. CommonProgramFiles = C:\Program Files\Common Files
    39. PUBLIC = C:\Users\Public
    40. USERDOMAIN_ROAMINGPROFILE = ADRIAN-LAPTOP
    41. TEMP = C:\Users\48884\AppData\Local\Temp
    42. CommonProgramW6432 = C:\Program Files\Common Files
    43. AMPLITUDE_TOKEN_YELLOWBUCKET_DEV = wKi8foVigDditGFvmZewRFWsEbX9Y0YO
    44. AMPLITUDE_API_KEY_GREENBUCKET_DEV = 3ded2a762163603391a425f688f990c8
    45. AMPLITUDE_API_KEY_REDBUCKET_PROD = ca12bb461ea96f9bdf5df4ded7d52994
    46. VBOX_HWVIRTEX_IGNORE_SVM_IN_USE = 1
    47. HOMEDRIVE = C:
    48. AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
    49. USERNAME = 48884
    50. OneDrive = C:\Users\48884\OneDrive
    51. AMPLITUDE_API_KEY_YELLOWBUCKET_PROD = e03a9bbe92dc38a88cdb068d24c65b46
    52. PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    53. AMPLITUDE_TOKEN_REDBUCKET_PROD = QqyoFpcWPi7V17p80_46CF6-sNGRGbHo
    54. AMDRMSDKPATH = C:\Program Files\AMD\RyzenMasterSDK\
    55. NUMBER_OF_PROCESSORS = 16
    56. AMPLITUDE_TOKEN_GREENBUCKET_DEV = 84H2gMm_FJzhr3mBaX1lM1JVukmCM7d9
    57. AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_DEV = client-wbjHYrmeSR87GmWOE7LDpf7sUySOIKHm
    58. PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
    59. ComSpec = C:\WINDOWS\system32\cmd.exe
    60. ORIGINAL_XDG_CURRENT_DESKTOP = undefined
    61. PROCESSOR_REVISION = 6001
    62. AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_PROD = client-zH8Y7OK1i331EKuG77C6UxN8ygcM6LzS
    63. TMP = C:\Users\48884\AppData\Local\Temp
    64. SystemDrive = C:
    65. OnlineServices = Online Services
    66. AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
    67. FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
    68. SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
    69. HEAP_CLIENT_TOKEN = 1717415662
    70. ALLUSERSPROFILE = C:\ProgramData
    71. Path = C:\Program Files\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\Git\cmd;C:\Users\48884\AppData\Local\Microsoft\WindowsApps;;C:\Users\48884\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Azure Data Studio\bin;C:\Users\48884\.dotnet\tools
    72. ProgramFiles = C:\Program Files
    73. LOCALAPPDATA = C:\Users\48884\AppData\Local
    74. USERPROFILE = C:\Users\48884
    75. WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3
    76.  
    77.  
    78. stderr[
    79. Error:Invalid command keytool-createkeystore
    80. ]
    81. stdout[
    82.  
    83. ]
    84. exit code: 64
    85. UnityEditor.Android.AndroidSDKTools.RunCommand (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, System.String workingdir, System.String errorMsg, System.Int32 memoryMB) (at <244ccb05dbb44d50bab3b8d11bc45cd9>:0)
    86. UnityEditor.Android.AndroidSDKTools.RunCommand (UnityEditor.Android.AndroidJavaTools javaTools, System.String[] sdkToolCommand, System.String errorMsg) (at <244ccb05dbb44d50bab3b8d11bc45cd9>:0)
    87. UnityEditor.Android.AndroidSDKTools.CreateKey (UnityEditor.Android.AndroidJavaTools javaTools, System.String keystore, System.String storepass, System.String alias, System.String password, System.String dname, System.Int32 validityInDays) (at <244ccb05dbb44d50bab3b8d11bc45cd9>:0)
    88. UnityEditor.Android.AndroidKeystoreWindow.CreateKey () (at <244ccb05dbb44d50bab3b8d11bc45cd9>:0)
    89. UnityEditor.Android.AndroidKeystoreWindow.OnGUI () (at <244ccb05dbb44d50bab3b8d11bc45cd9>:0)
    90. UnityEditor.HostView.OldOnGUI () (at <dd62d83a4bae432a9f10f9df151ae3a2>:0)
    91. UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <342504bd0e804d8681580f16844e29e7>:0)
    92. UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <342504bd0e804d8681580f16844e29e7>:0)
    93. UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <342504bd0e804d8681580f16844e29e7>:0)
    94. UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <342504bd0e804d8681580f16844e29e7>:0)
    95. UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <342504bd0e804d8681580f16844e29e7>:0)
    96. UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <342504bd0e804d8681580f16844e29e7>:0)
    97. UnityEngine.UIElements.IMGUIContainer.HandleEventBubbleUp (UnityEngine.UIElements.EventBase evt) (at <342504bd0e804d8681580f16844e29e7>:0)
    98. UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPathWithCompatibilityEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.EventBase compatibilityEvt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at <342504bd0e804d8681580f16844e29e7>:0)
    99. UnityEngine.UIElements.EventDispatchUtilities.DispatchToCapturingElementOrElementUnderPointer (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at <342504bd0e804d8681580f16844e29e7>:0)
    100. UnityEngine.UIElements.PointerEventBase`1[T].Dispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <342504bd0e804d8681580f16844e29e7>:0)
    101. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <342504bd0e804d8681580f16844e29e7>:0)
    102. UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <342504bd0e804d8681580f16844e29e7>:0)
    103. UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <342504bd0e804d8681580f16844e29e7>:0)
    104. UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <342504bd0e804d8681580f16844e29e7>:0)
    105. UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <342504bd0e804d8681580f16844e29e7>:0)
    106. UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <342504bd0e804d8681580f16844e29e7>:0)
    107. UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <342504bd0e804d8681580f16844e29e7>:0)
    108. UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <91b38be7fe3447c2aa8de9080a0a1f98>:0)
    109.  
    Have anyone else seen such error and knows solution? I regret using newest version of Unity, it has so many issues...
     
  2. IGuscin

    IGuscin

    Unity Technologies

    Joined:
    May 12, 2022
    Posts:
    83
    Hi,

    Can you share Editor.log?