Cordova3.6.3 download and install and create a consolidated Android project for Linux (Fedora 20)

Source: Internet
Author: User

Note: The Crodova2.9 version will not be able to download the zip directly after installation, you need to install Nodejs first. The following is an example of Linux (Feoda 20)

First, install Nodejs $ sudo yum install Nodejs

Second, put the Cordova installed in the application/directory (Installation location arbitrary)

$ cd application/into the directory

$ NPM Install Cordova installation

Third, go back to the root directory configuration environment variables

$ cd ~

$ gedit. BASHRC

Export Path=/home/admin/application/node_modules/cordova/bin: $PATH

$ source. BASHRC

Iv. Viewing version information

$ Cordova--version

$ Cordova Help

V. Create an Android Project

$ CD downloads/

$ cordova Create./wecity

Vi. Integration of Cordova

$ CD wecity/

$ Cordova Platform Add Android

This integration is done

Vii. integration to complete the need to configure some of the Cordova plug-ins

$ CD wecity/

$./cordovaplugin.sh This is a script that is written by itself, the common settings are added in, run directly download the required plug-in (to download the resources)

After the plugin download is complete

Enter the/home/admin/downloads/wecity/platforms directory to find an Android project to import into eclipse

Then find Cordovalib under the/home/admin/downloads/wecity/platforms/android Android entry


Importing Cordovalib under Android projects is done with an integrated Cordova Android project (you need to right-click on the project to Build the path-->configure Bulid path-to the left menu bar Select Android-->library-->add Add Cordora)


Note: You may get an error when importing an Android project

Need to right-click on project to Build path-->configure Bulid path-->source-->add Folder join (turn source) Android/gen Android/src



Cordova3.6.3 download and install and create a consolidated Android project for Linux (Fedora 20)

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.