Unable to install unsigned apk


I have create an unsigned apk using "ionic cordova build android --prod --release"
but not able to install it in the device while installing it shows app not installed
Please help ?


To install an unsigned APK, you need to create a keystore

Execute this by setting your KEY_NAME and ALIAS_NAME : keytool -genkey -v -keystore KEY_NAME_TO_CHANGE.keystore -alias ALIAS_NAME_TO_CHANGE -keyalg RSA -keysize 2048 -validity 10000
And provide a password

Then execute :
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore KEY_NAME.keystore MY_APP_NAME-release-unsigned.apk ALIAS_NAME

When all is done verify the APK with :
zipalign -v 4 MY_APP_NAME-release-unsigned.apk MY_APP_NAME.apk

Complete guide here : http://ionicframework.com/docs/v1/guide/publishing.html


check for your previous installation ie.,. debug release.
If you have previous version uninstall and try ionic cordova run android --prod

try to install the built app to device. Copy your apk to device storage and install through package manager.