Hybird App--cordova (original phonegap) installation configuration

Source: Internet
Author: User


One, environmental support


1, Android development environment (jdk+ Android Sdk+as/eclipse)

2,node.js


First of all, the relationship between PhoneGap and Cordova: PhoneGap is the original name, Cordova is PhoneGap was donated to Apache after the project name, PhoneGap name is also preserved ... Do not delve into the details.


Two, installation


after installing Nodejs, you can use its NPM command (similar to the Liunx command).


1, Installation:

Npminstall-g Cordova

2, after the completion of the version check to determine the completion of the installation:

Cordova-version

3, create the project:

CD H:\MobileTools\PhoneGap\Projects #进入文件夹要创建的项目的文件夹下面

Cordova Create Hello Com.example.helloHelloWorld #这个指令创建一个名为hello的项目, package named Com.example.hello

Cordova Platform Add Android #命令添加android平台

Then open the project in as:




will see a lot more than the Android project we built earlier , and the use of Acitivy in addition:



The WebView is omitted, and the page loading is done directly in the activity's OnCreate method.



Third, the trial experience

1, the environment is still quite complex, but also found that nodejs in the front-end frame with more and more, do not know later will not be web development, the appearance of nodejs+h5+c3 such standard.

2, for the native code, provides a very multi-class library, on the Web UI, we can choose their own front-end framework to match. Specific performance is unknown.





Hybird App--cordova (original phonegap) installation configuration

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.