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
).
for ionic 3 add
ionic login
enter email and pwd thenplease login and check the apk file.
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.First of all you have to install
and then after all installation you have to set this all software path into environmental- variable. and then fire your
npm install -g cordova
. without this all software installation and there path setup your phoneGap application will not created. and still you have any confusion and any question related software installation and there path setup then again tell me i will help you.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,
2.Adding a platform to that project
for ios
and for android
3.Previewing on a mobile device(Be Sure your device is Connected)
for ios
for android
4.Deploy to an android device
These are the Commands which leads to achieve a .apk .
We need to execute below mentioned steps to generate .apk with gradle build system:
Through out the steps I have assume that I am creating 'MyApp' project
Step 1 : generate myapp.keystore file using below mentioned command :
Step 2 : create ant.properties file with following details :
Step 3 : create gradle.properties file with the path to set ant.properties file :
Step 4 : Use last command as mentioned below :
Note : You must have set path for : java, adb, jarsigner, zipalign
Your generated apk will be in build folder.