-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export to apk error:"'jarsigner' returned with error #1" #1957
Comments
This comment has been minimized.
This comment has been minimized.
For some people it works with Java 7 and 8: But the message "'jarsigner' returned with error #1" is utterly unhelpful and no matter what combination I try, it always just says this. Apparently this has been a problem for a long time: Godot seems to be using the wrong params to jarsigner? This should be fixed. |
I ran Godot with -d flag and got this on the console: jarsigner error: java.security.SignatureException: private key algorithm is not compatible with signature algorithm |
When generating the debug keystore it is necessary to specify the following params:
Or it won't work with Godot. This is with OpenJDK 6. Might apply to the newer versions as well. Godot should be able to work with all JDKs and not use specific algos that are not the default of keytool. |
I use both versions of Java 7 and 8 with the same effect. They both work for me fine. I don't quite know why does not work to all. I'm on Windows 7 |
I would love to replicate the jarsigner behavior inside Godot, so people So, help appreciated. On Fri, Jun 12, 2015 at 6:22 AM, YugoCode notifications@github.com wrote:
OkamStudio |
you don't need java 6 .
|
For developing it is very useful to deploy directly from Godot to the phone, without first editing the APK file. |
@akien-mga I test it with the latest version I don't see this bug anymore you can close this issue. |
Thanks! |
I had this issue (with openJDK 8) and fixed it when generating the debug.keystore with the following command:
So yes, |
This proleam happen when you give wrong password when generate key. It should work. |
I have the same error in Godot 3.2, I've followed every answer, remade the keystore a few times over, tried everything, nothing works. If I try to use jarsigner manually to sign my APK, it returns a bunch of Java errors that mean nothing to me:
|
@unfa Are you using jarsigner from JDK 8 (and not a newer version)? |
Turned out I wasn't. I had JDK 7 installed. I want to write down all the things I've learned today so others an use them or I can use them later, because there's a bunch of pitfalls with Android exporting and once-click deployment. |
@unfa We should try to perform some kind of JDK version check before exporting to Android. However, |
Maybe there could be w suggestion for the user to check the version? |
This is technically feasible, but last time I asked, @akien-mga (or someone else) wasn't too keen on making Godot download the JDK or Android SDK automatically when needed. If we decide to go this route, AdoptOpenJDK is a good source of compiled OpenJDK 8 binaries for various platforms. |
This is still an issue with 1.1stable.
Tried Oracle Java 7 and 8.
The text was updated successfully, but these errors were encountered: