Vedan
Vedan

follow the Official Documentation of Ionic to install the Cli on your System. Make sure to follow all the steps.
creating the apk can be trick part
ionic cordova build android --prod --release gives you app-release-unsigned.apk but ionic cordova build android --prod gives you app-debug.apk. So you gotta make you unsignes version signed. so that you can install it on your Android.
These are the few steps for same
ionic cordova build android --prod --releasecp platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk app-release-unsigned.apkkeytool -genkey -v -keystore Vedan.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore Vedan.keystore app-release-unsigned.apk alias_namezipalign -v 4 app-release-unsigned.apk Vedan.apk