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

Popular posts from this blog

Your app currently targets API level 27 and must target at least API level 28 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 28

ionic project creation

change root user in ubuntu