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