Can't "Build APK" in Android Stduio [libGDX]
<p>I have some troubles with building a libGDX project on Android. When I choose "Build APK" in Android Studio > Build. </p>

<p>A trouble:
Error:Execution failed for task ':android:transformClassesWithDexForRelease'.</p>

<blockquote>
  <p>com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Android\Android Studio\jre\bin\java.exe'' finished with non-zero exit value 1 </p>
</blockquote>

<p>What I did:
- of course, did a lot of Google;
- reinstalled JDK;
- tried to change small settings in gradle config;
- tried to change SDK;</p>

<p>And nothing of above worked...</p>

<p>So this is my build.gradle:</p>

<pre><code>android {
buildToolsVersion '24.0.3'
compileSdkVersion 24
sourceSets {
    main {
        manifest.srcFile 'AndroidManifest.xml'
        java.srcDirs = ['src']
        aidl.srcDirs = ['src']
        renderscript.srcDirs = ['src']
        res.srcDirs = ['res']
        assets.srcDirs = ['assets']
        jniLibs.srcDirs = ['libs']
    }

    instrumentTest.setRoot('tests')
}
defaultConfig {
    applicationId "com.wlodek.oneman"
    minSdkVersion 8
    targetSdkVersion 24
}
productFlavors {
}
dexOptions {
    incremental true
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_7
    targetCompatibility JavaVersion.VERSION_1_7
}
buildTypes {
    buildType {
        debuggable false
        jniDebuggable false
    }
}
</code></pre>