WebApp Development Study---Cordova environment construction

Source: Internet
Author: User

Cordova Use HTML, CSS & JS for mobile app development, multi-platform common set of code; Free Open Source

Steps: (from Cordova website)

1. Install Cordova (Install in node. JS Environment)

Command Prompt line npm-v can see if the success of node. JS is installed

npm install-g Cordova installation Cordova

2. Create a project

Create an empty Cordova project using the command line. Navigate to the directory where you want to create the project

Example
Cordova Create MyApp com.mycompany.myteam.myapp MyApp

3. Add a platform

When you have finished creating a Cordova project, navigate to the project directory. CD MyApp

In the project directory, you need to add the platform you want to build the app Cordova Platform add Browser/cordova platform add Android

4. Run the app

Cordova Run Browser/cordova run Android

This is the result of running run browser:

Open the created project as follows:

Open it with Android Studio:

Android Studio opens as follows

Test with simulator or real machine as follows:

WebApp Development Study---Cordova environment construction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.