question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to load signer "signer #1"

See original GitHub issue

StackTrace:

Verification succesful
/bin/cp app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/app-release-unsigned-aligned.apk
/usr/local/lib/android/sdk/build-tools/29.0.3/apksigner sign --ks app/build/outputs/apk/release/signingKey.jks --ks-key-alias *** --ks-pass pass: --out app/build/outputs/apk/release/app-release-unsigned-signed.apk app/build/outputs/apk/release/app-release-unsigned-aligned.apk
Failed to load signer "signer #1"
java.io.EOFException
	at java.io.DataInputStream.readInt(DataInputStream.java:392)
	at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:661)
	at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:57)
	at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
	at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:71)
	at java.security.KeyStore.load(KeyStore.java:1445)
	at com.android.apksigner.SignerParams.loadKeyStoreFromFile(SignerParams.java:353)
	at com.android.apksigner.SignerParams.loadPrivateKeyAndCertsFromKeyStore(SignerParams.java:239)
	at com.android.apksigner.SignerParams.loadPrivateKeyAndCerts(SignerParams.java:181)
	at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:277)
	at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:83)
Error: The process '/usr/local/lib/android/sdk/build-tools/29.0.3/apksigner' failed with exit code 2

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:14

github_iconTop GitHub Comments

3reactions
riv0mananacommented, Jun 25, 2021

Hello, I’ve tested this action to sign my apk. This issue is caused when wrong “signingKeyBase64” is provided. Solution: run in your terminal: openssl base64 -in your_keystore.keystore -out key.txt and then copy the output content to your signingKeyBase64 secret. Hope it can help you

1reaction
vengateshmcommented, Jun 30, 2022

Using the below command worked for me, it printed the key in console and i copied that. openssl base64 -in your_keystore.keystore

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to load signer on Xamarin.Android - Stack Overflow
For me this issue was that I have the folder in One Drive and I have set the option for saving space, so...
Read more >
Error: Failed to load signer "signer #1" - Construct 3
I've got a problem with Building signed APK for Android. I've made everything according to this article: And build failed.
Read more >
Issue with manually signing a Xamarin.Android apk
Keystore password for signer #1: Failed to load signer "signer #1" java.io.FileNotFoundException: esm.keystore (The system cannot find the ...
Read more >
APK signing problem with Visual Studio version 7.4 and ...
"Failed to load signer "signer #1": ../../certificates/Android/default.keystore entry "(redacted)" does not contain a key".
Read more >
Android export: `'apksigner' returned with error #1` and `error ...
In particular, Failed to load signer "signer #1": C:/Users/user/.android/debug.keystore entry "debug.keystore" does not contain a key is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found