title: How do you build and deploy to an older version of android for ionic / cordova
body: <p>Using Ionic 1.0.0 beta-8</p>
  
  <p>After creating a new app, I built and deployed it to a Nexus 5 emulator and it worked fine. But when I tried to debug it on my Android 2.2 phone, I got this error:</p>
  
  <pre><code>....
  -post-build:
       [move] Moving 1 file to /home/admin/code/projects/myapp/ionic/platforms/android/ant-build
       [move] Moving 1 file to /home/admin/code/projects/myapp/ionic/platforms/android/CordovaLib/ant-build
  
  debug:
  
  BUILD SUCCESSFUL
  Total time: 6 seconds
  WARNING : No target specified, deploying to device 'I8972b56ddac'.
  Using apk: /home/admin/code/projects/myapp/ionic/platforms/android/ant-build/HelloCordova-debug-unaligned.apk
  Installing app on device...
  
  /home/admin/code/projects/myapp/ionic/platforms/android/cordova/node_modules/q/q.js:126
                      throw e;
                            ^
  ERROR: Failed to launch application on device: ERROR: Failed to install apk to device:  pkg: /data/local/tmp/HelloCordova-debug-unaligned.apk
  Failure [INSTALL_FAILED_OLDER_SDK]
  
  Error: /home/admin/code/projects/myapp/ionic/platforms/android/cordova/run: Command failed with exit code 8
      at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
      at ChildProcess.emit (events.js:98:17)
      at maybeClose (child_process.js:755:16)
      at Process.ChildProcess._handle.onexit (child_process.js:822:5)
  ERROR: Unable to run app on platform android. Please see console for more info.
  Exiting.
  </code></pre>
  
  <p>How do I make the build work in ionic/cordova for android 4.x.x phones as well as android 2.2 phones?</p>