Cordova Nodejs PhoneGap

Source: Internet
Author: User

This article is mainly about building Cordova environment under the Win7, do some basic configuration.

The first thing to do is Nodejs, if you haven't downloaded the dot here

http://www.nodejs.org/


Choose your own version of the OS to download,

The installation process can choose Next or the path itself to change, OK, and then view the version test success

Install the template with NPM Install-g Express NPM install-g Cordova

Install success also get version number;

If it is global, it should be in the environment variable

If there is no words, you manually add the slightly;

Install ant at this point, if you can't find the installation package download here http://ant.apache.org/bindownload.cgi

Download the appropriate files to unzip or install, zip the need to unzip and then change the PATH environment variable to add

After a successful DOS window shut down and reopen, run Cordova

That proves that you've been configured to succeed, just the rest of the build project,

Cordova Project name Com.test.hello "APK package name"

Cordova Paltform Add platform name (android|ios|bb|xim| ... );

Cordova Plugin add Org.apache.cordova. Geolocation referencing plugins

1.cordova Build Android Create app

2.cordova emulate Android simulator running;

3.cordova serve Android server running localhost:8000

4.Cordova Run Android running the real machine

If you need to manually install the app package name in Platform->android->ant-build to install to mobile,

HTML files are stacked below the WWW folder,

http://cordova.apache.org/in-depth learning Cordova plug-ins, ok HelloWorld to here.



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.