Problems with the after export

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By raulmd13

Im working with godot 3.0.5 from Steam on Windows 10.

I have seen all the tutorials of how to export to android and the templates, the adb, the jarsigner and the debugkeystores are fine. I think that they’re fine because I can export usesfully the example projects.

When I try to export my project it creates the .apk but when I try to install it in the mobile just say “Fail to install” and in blueStacks at less say “INSTALL-PARSE-FAILED-NO-CERTIFICATES”

I don’t know that much about building Android packages, but is the package getting signed?

Ertain | 2018-07-18 06:59

How I can to be sure that is signed?

raulmd13 | 2018-07-18 10:11

Hmm, I can’t quite figure out how to determine whether the package is signed. :frowning: Though there could be other things which are affecting the build.

I’ve read the documentation and it could be due to the version of JDK that you’re using. The documentation recommends using version 8 of the JDK. There’s that, and it could be an error of using a new key with the package, and your device expects an old key. Mind you, the answer to which I linked is from 2011, so it may not be relevant today. If all of that fails, you may have to get your hands dirty in the command prompt and make a new key.

In the page to which I linked, it says you need to create a new “debug.keystore” file and sign the *.apk file using jarsigner. You may also need to add -sigalg SHA1withRSA -digestalg SHA1 to the jarsigner command to make it work properly. Please bare in mind that this page is from 2014, so it may be outdated, too.

Ertain | 2018-07-20 03:07

:bust_in_silhouette: Reply From: zhangyao

Hi raumd13,

I encountered the exact same problem before,it is because you don’t have a correct jarsigner file loaded to godot.

Read this post, it will definitely solve your problem, follow it step by step so you know what is going on.

Isn’t that post mostly for Mac OS X? Also, the poster wrote at the bottom, “but an exported Android game won’t install on my phone.”

Ertain | 2018-07-20 02:46

It is the same since you are creating the same package for the same platform. Check this doc and check all your export setting on editor twice be sure you have the required version of jarsigner on correct platform, (in this case, windows 10,) and correct android SDK, otherwise, the APK package you created won’t successfully install.

zhangyao | 2018-07-20 07:37