5 Replies Latest reply on May 24, 2017 4:10 AM by mindtecki2299322

    Verification of steps to create a phonegap project

    mindtecki2299322 Level 1

      Hello,

       

        We are creating a project in phonegap using following command lines:

       

        1. Installation of the command line interface requires node.js. If you have not, you must install it first.

       

        2. Install phonegap with npm: $ sudo npm install -g phonegap [ Check phonegap version installed with this command: $ phonegap -v]

         

        3. Create a new project by typing these commands:

       

        $ phonegap create simple-chat com.mydomain.chat SimpleChat

        $ cd simple-chat

        $ phonegap build android

            [phonegap] executing 'cordova platform add --save android' ...

            [phonegap] completed 'cordova platform add --save android'

            [phonegap] executing 'cordova build android ' ...

            [phonegap] completed 'cordova build android --no-telemetry'

       

        4. Import project > Platform > android in Android studion and build to run on device.

       

        But now we have noticed that while the poject is being built in android platform its using the same command which was used

        at the time of cordova project creation viz.,

            [phonegap] executing 'cordova platform add --save android' ...

            [phonegap] completed 'cordova platform add --save android'

            [phonegap] executing 'cordova build android ' ...

            [phonegap] completed 'cordova build android --no-telemetry'

       

        Please confirm whether it is the proper steps to create a phonegap project or not.