I have created simple apps in local directory, that app name is Ionic-Chat-master
How can i make this to apk file?
i have tried the following command using git but not worked for me
npm install -g cordova
cordova build --release android
This displays an error (sh.exe": cordova: command not found
).
The easiest way, no need to install anything:
ionic package build android
(magic happens in the cloud)
Then you can download .apk
to a computer or your Android device.
If you want generate .apk using Ionic FrameWork . thats very simple for the sake of this discussion I created the sample app and convert that sample app in to .apk using Ionic Command.
1.Create a Ionic Sample App,
$ionic start Ionic-Chat-master
2.Adding a platform to that project
for ios
C:\Ionic-Chat-master>ionic platform add ios
and for android
C:\Ionic-Chat-master>ionic platform add android
3.Previewing on a mobile device(Be Sure your device is Connected)
for ios
C:\Ionic-Chat-master>ionic run ios -l –c
for android
C:\Ionic-Chat-master>ionic run android -l –c
4.Deploy to an android device
C:\Ionic-Chat-master>ionic build android
These are the Commands which leads to achieve a .apk .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With