Open StarHeartHunt opened 3 years ago
I am having similar issue. No luck so far!
I'm also facing this issue.
@me-at-syeds-me @soethan98 Any luck ?
any updates on this?
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
hm. ordinary base64 turns my keystore into 3kb file, openssl base64 turns it into 4kb. perhaps that is why some people have this error and others do not? (i have it at the moment. verifying whether it works with openssl base64) nope. still does not sign properly
I had the same error message when I misspelled "SIGNING_KEY" in my secrets 🤦♂
I have the same error. What is the solution?
For me it was me creating the wrong gitlab variables
Any update on this issue?
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
@riv0manana did you use key.txt as is or deleted newlines from it?
Using the below command worked for me, it printed the key in console and i copied that. openssl base64 -in your_keystore.keystore
Using the below command worked for me, it printed the key in console and i copied that. openssl base64 -in your_keystore.keystore
I tried the same. But still the issue persist for me. I encode the key-store file in mac, but i am using windows-2019 as runner.
Failed to load signer "signer #1"
java.io.IOException: Invalid keystore format
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:666)
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)
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2293,2): error MSB6006: "java.exe" exited with code 2.
CR/LF issue?
Your password, alias, or keyword is incorrect! Just double-check!
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@riv0manana did you use key.txt as is or deleted newlines from it?
I am not sure but I think delelting the newlines worked for me
StackTrace: