Introduction to PHONEGAP Development

Source: Internet
Author: User

Have done a few development configuration, but the time a long forgotten, special record a bit.

Environment variable configuration:: Right-click "My Computer"-"advanced"-"Environment variable"

1, the new Java_home variable in the system variables, the value of the variable is: C:\Program files\java\jdk1.7.0_79 (according to their own installation path to fill in)

2, the new classpath variable, the value of the variable is:.; %java_home%\lib;%java_home%\lib\tools.jar

3. Add the variable value at the end of the path variable (existing without new):%java_home%\bin;%java_home%\jre\bin; (Note the ";" between the variable values) Separated

4. "Start"-"Run"-enter "Javac" and "enter", if you can print the usage instructions correctly, the configuration is successful!

5, download Android development Tools has included the Android SDK, Esclipe, decompression can be used.

Address: http://pan.baidu.com/s/1hqxPoDe#path=%252FAdt%2520%25E6%2589%2580%25E6%259C%2589%25E8%25BD%25AF%25E4%25BB% 25b6%2520%25e7%2594%25a8%25e4%25ba%258eandroid%25e5%25bc%2580%25e5%258f%2591

6. Add the variable value at the end of the path variable (existing without new):

D:\phonegap\adt-bundle-windows-x86_64-20140702\sdk\tools (fill in according to your own storage path)

D:\phonegap\adt-bundle-windows-x86_64-20140702\sdk\platform-tools

D:\phonegap\adt-bundle-windows-x86_64-20140702\eclipse\plugins\org.apache.ant_1.8.3.v201301120609\bin

7. Update your Android SDK to the latest (otherwise build unsuccessful)

8. The ant directory cannot be Chinese or the compilation is unsuccessful

9. Enter Java Javac ant to see if the configuration environment is successful

Note: The installation path of the JAVA_HOME:JDK

  Classpath:java load Classpath, only the class is recognized by the Java command in Classpath, and a "." is added before the path. Table shows the current path

Path: The system can recognize the JAVA,JAVAC command under any path

Second, install node node. js

:http://nodejs.org/

Download Complete Install node

Third, installation PhoneGap

NPM install-g Cordova

Iv. Creation of the project

   Cordova Create Hello Com.example.hello "HelloWorld" CD Hello Cordova platform add Android Cordova build Cordova Run an Droid Run Simulator

Installation and removal of plugins

Cordova Plugin Add Org.apache.cordova.console   //Add Cordova plugin ls    //view Cordova plugin RM Org.apache.cordova.console    //delete

Vi. Configuring global Files

Http://docs.phonegap.com/zh/edge/config_ref_index.md.html#Config.xml%20%E6%96%87%E4%BB%B6

Introduction to PHONEGAP Development

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.