"'jarsigner' returned with error #1" when exporting a non debug APK

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Robster
:warning: Old Version Published before Godot 3 was released.

Hi all,

I’ve been exporting debug builds to android just fine for a few weeks now.

I then switched off the debug switch in the export options to get ready to upload my beta version to the play store. Quite exciting!

The problem is I get “‘jarsigner’ returned with error #1

I just can’t figure out what to do. I am using OS X if anyone can offer some guidance.

Thanks.

Did you make and assign keystore on Android export setting?

volzhs | 2016-11-18 07:25

Thanks for your reply… Could you please explain that in a little more detail?

I have installed Android studio,created a debug.keystore file. I’ve pointed also to the .jks file that Android studio created but I’m sort of flying blind. I have an idea of the concepts but now I’ve switched from debug to non debug I’m… getting the error mentioned. Anything you can help me with would be a bonus. I’m grounded as it is. Thanks. Rob

Robster | 2016-11-18 10:46

I think you need to make release.keystore file for release.
AFAIK, .jks file is not used in anywhere with godot.

https://forum.godotengine.org/7595/exporting-to-android-error-could-not-find-keystore

maybe this would help.

volzhs | 2016-11-18 12:22

Thank you, that link helped me to create the release.keystore. Unfortunately though, I am still getting the jarsigner error. Hopefully someone has come across this.

Robster | 2016-11-18 22:37

:bust_in_silhouette: Reply From: Robster

For future people this was the suggestion given to me elsewhere that worked:

Go to terminal and execute this:

keytool -genkey -v -keystore release.keystore -alias yourKeyAlias -keyalg RSA -sigalg SHA1withRSA -keysize 2048 -validity 10000

It will create a file called release.keystore after it asks you some questions.
This is the file you will need to use. yourKeyAlias is the username in Godot and the password will be created with the questions it asks you later.

That file solved my problem. I hope that helps others.