Ionic HTML5 compiling iOS android native app

Source: Internet
Author: User
Tags install node

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

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.