title: Ionic Android Build Fails CordovaLib:processDebugResources
body: <p>I recently wanted to try out ionic and specifically develop android apps. I was able to set everything up using the ionic tutorial and run  via localhost. I want to be able to do the same using the android emulator but have been unsuccessful. I have searched and tried everything but I am still not sure how to resolve the error below. All the code is from the ionic getting started page with their project called todo. If anyone could help me with this. it would be much appreciated. I am using Ubuntu. The following is what my terminal gives when I run "ionic build android"</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  * What went wrong:
  Execution failed for task ':CordovaLib:processDebugResources'.
  &gt; com.android.ide.common.process.ProcessException:  
  org.gradle.process.internal.ExecException:
  Process 'command '/home/myname/Android/Sdk/build-tools/24.0.0/aapt''    
  finished with non-zero exit value 127
  
  * Try:
  Run with --stacktrace option to get the stack trace. 
  Run with --info or   --debug option to get more log output.
  
  BUILD FAILED
  Total time: 37.93 secs
  Error: Error code 1 for command: /home/myname/todo/platforms/android 
  /gradlew with args: cdvBuildDebug,-b,/home/myname/todo/platforms
  /android/build.gradle,-Dorg.gradle.daemon=true,
  Pandroid.useDeprecatedNdk=true
  </code></pre>
  
  <p>Edit 1:
  I ran the following command suggested below: ./gradlew assembleDebug -info and I get the following error:</p>
  
  <pre><code>:CordovaLib:processDebugResources
  Executing task ':CordovaLib:processDebugResources' (up-to-datecheck      
  took 0.058 secs) due to:
  No history is available.
  All input files are considered out-of-date for incremental task
  ':CordovaLib:processDebugResources'.
  Starting process 'command '/home/myname/Android/Sdk/build-tools/24.0.0
  /aapt''. Working directory: /home/myname/todo/platforms/android 
  /CordovaLib Command: /home/myname/Android/Sdk/build-tools/24.0.0/aapt 
  package -f --no-crunch -I /home/myname/Android/Sdk/platforms/android- 
  23/android.jar -M /home/myname/todo/platforms/android/CordovaLib/build
  /intermediates/bundles/debug/aapt/AndroidManifest.xml -S /home/myname
  /todo/platforms/android/CordovaLib/build/intermediates/bundles/debug/res
  -A /home/myname/todo/platforms/android/CordovaLib/build/intermediates
  /bundles/debug/assets -m -J /home/myname/todo/platforms/android 
  /CordovaLib /build/generated/source/r/debug --debug-mode --custom-
  package 
  org.apache.cordova --non-constant-id -0 apk --output-text-symbols  
  /home/myname/todo/platforms/android/CordovaLib/build/intermediates 
  /bundles /debug
  Successfully started process 'command '/home/myname/Android/Sdk/build-
  tools/24.0.0/aapt''
  Unknown source file : /home/myname/Android/Sdk/build-tools/24.0.0/aapt:
  1: /home/myname/Android/Sdk/build-tools/24.0.0/aapt: ELF: not
  found :CordovaLib:processDebugResources FAILED
  </code></pre>
  
  <p>From what I see I understand that something is wrong with the aapt file, If I remove it it throws errors, so I am not sure how to edit the aapt file</p>