the step by step was stated before.
about the phonegap i never used it (and could you please tell me why are people using it? is it better than android studio in some way? ). i built the apk on android studio, you just have to point to the project folder "/platform/android/" and build the apk. oh also you will need to set the keys to the app if you already did it you are set. i had a issue that i could not solve on the terminal there is something called graddle, and when i build it on the android studio it updates the gradle files and it builds it.
i will tell you the logic :
first you will have to build the ionic build think it as a multiple purpose build, then you will have to populate the project folder you will want to build to. so if you need it to create a folder for android it will be like :
first you build the ionic build with :
npm run ionic:build -- --prod
then you populate the project folder you need to. if its android you do :
to clear the old android project:
ionic cordova platform remove android
to add the project using the build you just created :
ionic cordova platform add android
now you are set to move to your app to build the apk. you might have problems with graddle i think and i bumped into a solution that worked for me (the android one).
about the phonegap i never used it (and could you please tell me why are people using it? is it better than android studio in some way? ). i built the apk on android studio, you just have to point to the project folder "/platform/android/" and build the apk. oh also you will need to set the keys to the app if you already did it you are set. i had a issue that i could not solve on the terminal there is something called graddle, and when i build it on the android studio it updates the gradle files and it builds it.
i will tell you the logic :
first you will have to build the ionic build think it as a multiple purpose build, then you will have to populate the project folder you will want to build to. so if you need it to create a folder for android it will be like :
first you build the ionic build with :
npm run ionic:build -- --prod
then you populate the project folder you need to. if its android you do :
to clear the old android project:
ionic cordova platform remove android
to add the project using the build you just created :
ionic cordova platform add android
now you are set to move to your app to build the apk. you might have problems with graddle i think and i bumped into a solution that worked for me (the android one).