I am buiding apk but i am unable to generate the signing key

‘keytool’ is not recognized as an internal or external command,
operable program or batch file.

Failed to generate Android Keystore, it will be generated on Expo servers during the build
keytool exited with non-zero code: 1
Error: keytool exited with non-zero code: 1
at ChildProcess.completionListener (C:\Users\Diago Gfx\AppData\Roaming\npm\node_modules\expo-cli\node_modules@expo\spawn-async\src\spawnAsync.ts:65:13)
at Object.onceWrapper (events.js:520:26)
at ChildProcess.emit (events.js:400:28)
at ChildProcess.cp.emit (C:\Users\Diago Gfx\AppData\Roaming\npm\node_modules\expo-cli\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (internal/child_process.js:1055:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

at spawnAsync (C:\Users\Diago Gfx\AppData\Roaming\npm\node_modules\expo-cli\node_modules@expo\spawn-async\src\spawnAsync.ts:26:19)
at createKeystore (C:\Users\Diago Gfx\AppData\Roaming\npm\node_modules\expo-cli\node_modules\xdl\src\credentials\AndroidCredentials.ts:150:18)
at Object.generateUploadKeystore (C:\Users\Diago Gfx\AppData\Roaming\npm\node_modules\expo-cli\node_modules\xdl\src\credentials\AndroidCredentials.ts:199:9)
at UpdateKeystore.provideOrGenerate (C:\Users\Diago Gfx\AppData\Roaming\npm\node_modules\expo-cli\src\credentials\views\AndroidKeystore.ts:68:53)
at UpdateKeystore.open (C:\Users\Diago Gfx\AppData\Roaming\npm\node_modules\expo-cli\src\credentials\views\AndroidKeystore.ts:39:22)
at CredentialsManager.run (C:\Users\Diago Gfx\AppData\Roaming\npm\node_modules\expo-cli\src\credentials\route.ts:42:12)
at runCredentialsManager (C:\Users\Diago Gfx\AppData\Roaming\npm\node_modules\expo-cli\src\credentials\route.ts:13:10)
at AndroidBuilder.collectAndValidateCredentials (C:\Users\Diago Gfx\AppData\Roaming\npm\node_modules\expo-cli\src\commands\build\AndroidBuilder.ts:88:7)
at AndroidBuilder.run (C:\Users\Diago Gfx\AppData\Roaming\npm\node_modules\expo-cli\src\commands\build\AndroidBuilder.ts:33:5)
at AndroidBuilder.command (C:\Users\Diago Gfx\AppData\Roaming\npm\node_modules\expo-cli\src\commands\build\BaseBuilder.ts:43:7)

Hi

How are you building the app? Does the above error cause the build to fail?

keytool is distributed with Java, so as a workaround you should be able to install Java and make sure that keytool is in your PATH.

Problem is solved . I updated JFK to the latest vision that’s (jdk16) and it was able to generate the keystone.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.