Ionic APK Generation
Run app on web use below command
1)ionic serve
2)adb devices(check device connected or not)
3) export ANDROID_HOME="/home/nss/Android/Sdk"(android home path)
4) ionic cordova run android (debug apk)
5) ionic cordova build android (debug apk)
6) ionic cordova platform addd android
add platforms command
generate keytool-->
7) keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
8)ionic cordova build android --prod --release
(/home/nssdt022/VisitorappIonic5project/visitorapp/platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk) like release apk will be generated here you go to that path and paste keytool here and then run below command
9) jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore orangerover.keystore app-release-unsigned.apk orangerover
final steps of apk-->open extranal terminal
10) cd Android/Sdk/build-tools/26.0.1
11) ./zipalign -v 4 app-release-unsigned.apk orangerover19thapr.apk
1) ionic serve
*check is this device is connected or not
2) adb devices
to run
3) export ANDROID_HOME="/home/nss/Android/Sdk"
4) ionic cordova run android (debug apk)
5) ionic cordova build android (debug apk)
6) ionic cordova platform addd android
add platforms command
7) ionic cordova build android --prod --release
(/home/nssdt022/VisitorappIonic5project/visitorapp/platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk) like release apk will be generated here you go to that path and paste keytool here and then run below command
8) jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore orangerover.keystore app-release-unsigned.apk orangerover
9) externel terminal
--------------------------------
1. cd Android/Sdk/build-tools/26.0.1
2. ./zipalign -v 4 app-release-unsigned.apk orangerover19thapr.apk
Comments
Post a Comment