Packaging Apps with PhoneGap

Source: Internet
Author: User

1, installation of Nodejs,

2, Installation PhoneGap

NPM install-g PhoneGap

3, PhoneGap packaging cheer APK needs to use the Ant Packaging tool, first configure the Java environment:

Download Java JDK and eclipse,android SDK

Click Install Java JDK, in the pop-up interface to recommend the use of default values, so always click "Next>" until the completion.

Copy the path where the bin directory resides, edit the path in the environment variable, add the Java JDK path

Enter "Javac" at the command line to test whether the installation was successful.

4, to the Ant official website http://ant.apache.org/Download the latest version, unzip to the computer.

Configuring environment Variables in Path

%android_home%\tools;%android_home%\platform-tools; Android_home      D:\Program Files\adt-bundle-windows\sdk

To see if the installation was successful: Enter the command in the DOS window ant

5. Create a project using PhoneGap:
$PHONEGAP Create My-app

6, Packaging projects:

$CD my-App$phonegap run Android

Packaging Apps with PhoneGap

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.