How to generate an apk file from my ionic project!


#1

I TRIED cordova emulate --device for the first attempt i don’t know how to generate an apk file and an error occured saying failed to find android command in your path !! help me please!!!


#2

If you are on Windows make sure that you set the Android sdk path in your environment variable’s.
Go through the ionic getting started again in case you missed something


#3

To generate an apk you would use ionic build android.

The Cordova documentation is quite detailed on what you have to install:
https://cordova.apache.org/docs/en/7.x/guide/platforms/android/index.html#installing-the-requirements

What exact error was that?


#4

thanks i’ll take a look on this documentation