PhoneGap3.0 Environment Build Android Demo

Source: Internet
Author: User

Today, due to the project requirements, using the PhoneGap, the following is the PHONEGAP Android environment build:

1. Preparatory work:

(1) Nodo.js environment, Java Environment, Android Environment, PHONEGAP Environment, ant Environment, Cordova Environment (this will be installed automatically in the configuration PhoneGap environment) to see that the environment head is dizzy, then one by one explain it.

2.nodo.js to the official website http://nodejs.org/Download node installation package, download complete installation can be completed.

3. The Nodo.js program will appear when you finish loading it.

4. There is a node. JS environment, folded down to configure phonegap; open command Line inputnpm install -g phonegap  就会出现光标一直闪开始云下载

About 10 seconds to download the complete, see your will appear Phongap folder

5. There is a phonegap environment, in the command line inputphonegap create my-app    "my-app" 是文件夹  包名是是phonegap默认的 。

If you use Cordova, you can name your own package name.

6. Enter the CD My-app into the project folder you just created.

7. Execute in this directoryphonegap run android   这个就结束了,你的创建的目录下就会出现 ..\my-app\platforms\android 多出来android目录 里面就有Android工程了。其间如果提示你没有Java 环境 请配置! 提示你android 环境 配置下!提示Ant 环境 配置下!PhoneGap默认是要求android-19的android SDK 没办法去下载吧,不然过不了。

Official website: http://phonegap.com/install/and Http://docs.phonegap.com/en/4.0.0/guide_overview_index.md.html#Overview Depending on the configuration above

PhoneGap3.0 Environment Build Android Demo

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.