Gradle can't build Android Project in command line, aapt fails
<p>I have created a basic Android project following <a href="https://spring.io/guides/gs/gradle-android/" rel="nofollow">this guide.</a></p>

<p>Now when I run gradle(version 2.10) in my command line I get the following error:</p>

<pre><code>FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
&gt; com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/opt/android-sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1
</code></pre>

<p>This is my build.gradle file:</p>

<pre><code>buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'

    }
}

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"
}
</code></pre>

<p>And here is my AndroidManifest.xml file:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="org.hello"
    android:versionCode="1"
    android:versionName="1.0.0" &gt;

    &lt;application android:label="@string/app_name" &gt;
        &lt;activity
            android:name=".HelloActivity"
            android:label="@string/app_name" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;
                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;/application&gt;

&lt;/manifest&gt;
</code></pre>

<p>Funny thing is, when I start Android Studio(1.5) and build a test application there it works fine, but doing it in command-line fails. I tried copying the gradle file from AS, to no avail. I checked the installation path, aapt is where it is supposed to be.</p>

<p>I'm quite lost here since I used that very same guide from above a few months ago. Today I updated my Android SDK installation(<strong>EDIT:</strong> I made sure the right revisions are installed) but I can't get anything to build properly.</p>

<p>Let me know if you need more information, I'm stuck.</p>