Use ionic to compile HTML5 in winndows environment to Android (Network is best to visit foreign websites) 1. Prepare Android Operating Environment (Baidu) Configure path=d:\mysoftware\ adt-bundle-windows-x86_64-20140321\sdk\platform-tools; D:\mysoftware\adt-bundle-windows-x86_64-20140321\sdk\tools 2. Install node. JS (node. JS is a tool that installs after installation with Ionic) 3.npm install -g cordova ionic (after installing node. js, enter the command in DOS to install ionic) 4.>ionic start myapp tabs >cd myapp >ionic platform add android >ionic build android >ionic emulate android notes: ANDROID SDK and Tools management commands: Android; ionic official website Installation Documentation:http://www.ionicframework.com/getting-started/; installation Error Record: 1. Android Environment not installed error: running command: c:\users\administrator\myapp\platforms\android\cordova\ Build.bat[error: please install&nbsP android target: "Android-22". Hint: open the sdk manager by running: d:\mysoftware\adt-bundle-windows-x86 _64-20140321\sdk\tools\android. batyou will require:1. "Sdk platform" for android-222. "android sdk Platform-tools (Latest) 3. "Android sdk build-tools" (latest)]error Building one of the platforms: error: c:\users\administrator\myapp\platforms\ Android\cordova\build.bat: command failed with exit code 2you may not have the required environment or OS to build this Projecterror: c:\users\administrator\myapp\platforms\android\cordova\build.bat: command failed with exit code 2 at ChildProcess.whenDone (C:\Users\ administrator\appdata\roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at process.childprocess._handle.onexit (Child_process.js:1087:5)
Ionic HTML5 compiling iOS android native app