title: Ubuntu + Cordova + Android, cant run any android apps
body: <p>I installed phonegap and android SDK on my ubuntu 16.04 but cant get any android apps to run.</p>
  
  <p>This is totally new project, I've only done:</p>
  
  <ul>
  <li>cordova create app</li>
  <li>cordova platform add android (runs fine, no errors)</li>
  </ul>
  
  <p>but then I try:</p>
  
  <ul>
  <li><p>cordova run android and build fails</p>
  
  <p>BUILD FAILED</p>
  
  <pre><code>Total time: 1.23 secs
  
  Error: /home/clomez/Documents/mobile/testapp/app/platforms/android/gradlew: Command failed with exit code 1 Error output:
  /home/clomez/Downloads/build-tools/25.0.2/aapt: 3: /home/clomez/Downloads/build-tools/25.0.2/aapt: Syntax error: Unterminated quoted string
  
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':CordovaLib:processDebugResources'.
  &gt; com.android.ide.common.process.ProcessException: Failed to execute aapt
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  </code></pre></li>
  </ul>
  
  <p>I'm getting pretty desperate since I need this for school next week, and all the answers talk about changing the SDK version in build. I fail to find any of those options in gradel file...</p>
  
  <p>Running with <code>--stacktrace</code> gives exactly the same output.</p>
  
  <p><a href="https://imgur.com/a/trkrl" rel="nofollow noreferrer">http://imgur.com/a/trkrl</a>  - installed Android SDK's and tools</p>
  
  <p>Any help would be greatly appreciated.</p>