

C:\Users\yourusername\AppData\Local\Android\Sdk\build-tools\versionnumber\zipalign -v 4 app-release-unsigned.apk Īfter doing these three steps you can now install on your phone/bluestacks/etc. zipalign comes with the android sdk when installing android studio. To finish up we need to run zipalign this will generate the final apk file.

or add the jdk bin folder to your system paths keytool -genkey -v -keystore myquasar-release-key.keystore -alias myquasar-release -keyalg RSA -keysize 2048 -validity 20000Īfter creating the keystore you have to sign the apk with jarsigner which also comes with the java jdk jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore c:\dev\android\keys\myquasar-release-key.keystore app-release-unsigned.apk myquasar-release Note: you may have to type the full path to run keytool, and jarsigner. I would suggest running the command where you want to store the keystore for example from c:\dev\android\keys\ Keytool is located in your java jdk folder the following example will generate a keystore. You have to use keytool to generate a keystore first.

The reason it wouldn't install was the apk not being signed.
