Sencha Touch 2.3 / Cordova : Build run directly on device

后端 未结 1 1859
生来不讨喜
生来不讨喜 2020-12-20 03:47

I created an app for android with Sencha Touch 2.3 and Cordova. I used the following command to build and run the apk:

sencha app build -run native


        
相关标签:
1条回答
  • 2020-12-20 03:57

    It is possible. There is a difference between Sencha and Cordova commands and both are for different purpose. Once you want to make apk for your android device. Just go through the steps here. But i will advice you to use build of your app to work with in your cordova app.

    After making build of your project, Check the following steps:

    cordova create yourapp com.example.yourapp YourApp
    
    cd yourapp
    
    cordova platform add android
    
    cordova build android
    

    After this you should copy your project and paste it into the immediate www folder of your cordova project. And then run

    cordova run android
    

    NB: sencha app build native

    Deploy the .apk file in your emulator or real device to test the app

    0 讨论(0)
提交回复
热议问题