Cordova+vue Cordova Environment Building (Android), Real machine test

Source: Internet
Author: User

I. Installing node. JSGo to official website to download node. JS (official address: https://nodejs.org), installed by default path. After installation, enter $ NPM at the command line//(Test node. JS is installed successfully) second, global installation Cordova CLI$ NPM Install CORDOVA-G $ cordova//test whether the installation was successful Iii. deployment of the Android development environment1, install the JDK (if installed Android Studio is 2.2 later version please install jdk1.8), JDK please go to the official website http://java.oracle.com/download, download after installation, configure environment variable/HTTP/ Www.cnblogs.com/yuzhongwusan/archive/2013/03/26/2982411.html 2, install Android SDK please download and install Android sdkhttp://from official website developer.android.com/sdk/index.html, configure the SDK environment variables after installation http://jingyan.baidu.com/article/ f71d603757965b1ab641d12a.html 3, install ant (please download 1.8.1, other versions tried the configuration is not successful) ant is the next packaged deployment tool in the Java platform and requires this tool when using the Cordova command. http://ant.apache.org/bindownload.cgi, download the zip archive, and configure the environment variable after decompression: http://www.cnblogs.com/yuzhongwusan/archive/2013/03/ 26/2982411.html Iv. creation of CordovaGo to the destination folder and execute the following command: Cordova create hello Com.example.hello HelloWorld cd Hello Cordova platform add android Cordova BU ILD (build time is longer, please wait patiently, if the intermediate card, please press CTRL + C terminal operation, enter Cordova build again) v. Android Studio import Cordova ProjectWhen importing a project, we select Import from Gradle, and when importing the project, be sure to check build.gradle and click OK. six, the real machine testUse our data cable to connect the phone and the computer, allow the phone USB debugging, and then put our packaged Vue project into the WWW folder, the last run project is OK.

Cordova+vue Cordova Environment Building (Android), Real machine test

Related Article

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.