I see many questions and answers and some seem contradictory.
I have an APK. It does say "signed".
I can copy it to my phone and it runs OK.
If I put it on my website and download it I get a warning that it might harm my device.
I have defined a KeyStore, Pwd, Alias and AliasPwd in the app's project.
When I click on Sign the APK using the following keystore details I get an "jave.exe error 2" and that's it. The APK is then corrupted.
Is there a definite procedure for doing this? (I mean like step 1, step 2, etc.)?
And what about zipalign? And what about the answer here: Signing an APK with an upload key provided by Google Play
Which seems to add many caveats.
What do I do with my release APK so it can be signed and uploaded to Google Play store (or even to my own web site to be downloaded without warnings)?
SO I tried using the Keytool and this is what I get:
