How to make apk file using ionic framework with angular

后端 未结 7 1317
天命终不由人
天命终不由人 2021-02-03 12:28

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 b

7条回答
  •  野的像风
    2021-02-03 13:04

    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 .

提交回复
热议问题