title: Android release Build failing due to shrinkReleaseMultiDexComponents
body: <p>I'm having real difficulties building a release version of my app.</p>
  
  <p>This is part of the output I get when running <code>./gradlew assembleRelease --stacktrace --debug</code></p>
  
  <p>In Android Studio it spits out the same thing and I've crawled the net but haven't found a solution for this.</p>
  
  <pre><code>17:57:41.664 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':app:shrinkReleaseMultiDexComponents' (up-to-date check took 0.002 secs) due to:
    No history is available.
  17:57:41.665 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':app:shrinkReleaseMultiDexComponents'.
  17:57:41.717 [INFO] [system.out] ProGuard, version 5.2.1
  17:57:41.745 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':app:shrinkReleaseMultiDexComponents'
  17:57:41.745 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :app:shrinkReleaseMultiDexComponents FAILED
  17:57:41.746 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :app:shrinkReleaseMultiDexComponents (Thread[main,5,main]) completed. Took 0.091 secs.
  17:57:41.747 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 8.329 secs, idle: 0.049 secs
  17:57:41.771 [ERROR] [org.gradle.BuildExceptionReporter] 
  17:57:41.774 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
  17:57:41.774 [ERROR] [org.gradle.BuildExceptionReporter] 
  17:57:41.775 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
  17:57:41.775 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':app:shrinkReleaseMultiDexComponents'.
  17:57:41.782 [ERROR] [org.gradle.BuildExceptionReporter] &gt; java.io.IOException: The output jar [/Users/jacob/Documents/MyApp/app/build/intermediates/multi-dex/release/componentClasses.jar] must be specified after an input jar, or it will be empty.
  17:57:41.783 [ERROR] [org.gradle.BuildExceptionReporter] 
  17:57:41.795 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
  17:57:41.797 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:shrinkReleaseMultiDexComponents'.
  17:57:41.797 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
  17:57:41.797 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
  17:57:41.798 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
  17:57:41.798 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
  17:57:41.798 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
  17:57:41.799 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
  17:57:41.799 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
  17:57:41.799 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
  17:57:41.799 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
  17:57:41.800 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305)
  17:57:41.800 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
  17:57:41.800 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
  17:57:41.800 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
  17:57:41.800 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
  17:57:41.801 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)
  17:57:41.801 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
  17:57:41.801 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
  17:57:41.801 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
  17:57:41.802 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)
  17:57:41.802 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
  17:57:41.802 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
  17:57:41.802 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)
  17:57:41.802 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
  17:57:41.803 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
  17:57:41.803 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
  17:57:41.803 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)
  17:57:41.804 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
  17:57:41.804 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
  17:57:41.804 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
  17:57:41.804 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
  17:57:41.805 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
  17:57:41.807 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
  17:57:41.807 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
  17:57:41.809 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
  17:57:41.810 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
  17:57:41.810 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
  17:57:41.811 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
  17:57:41.812 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
  17:57:41.813 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
  17:57:41.814 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
  17:57:41.814 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.Main.doAction(Main.java:33)
  17:57:41.815 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
  17:57:41.815 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
  17:57:41.816 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
  17:57:41.816 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
  17:57:41.817 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)
  17:57:41.818 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)
  17:57:41.819 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
  17:57:41.819 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.internal.UncheckedException: java.io.IOException: The output jar [/Users/jacob/Documents/MyApp/app/build/intermediates/multi-dex/release/componentClasses.jar] must be specified after an input jar, or it will be empty.
  17:57:41.819 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:39)
  17:57:41.819 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:66)
  17:57:41.820 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218)
  17:57:41.820 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)
  17:57:41.820 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)
  17:57:41.820 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:579)
  17:57:41.821 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:562)
  17:57:41.821 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
  17:57:41.821 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
  17:57:41.821 [ERROR] [org.gradle.BuildExceptionReporter]    ... 47 more
  17:57:41.821 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: The output jar [/Users/jacob/Documents/MyApp/app/build/intermediates/multi-dex/release/componentClasses.jar] must be specified after an input jar, or it will be empty.
  17:57:41.822 [ERROR] [org.gradle.BuildExceptionReporter]    at proguard.ConfigurationChecker.check(ConfigurationChecker.java:64)
  17:57:41.822 [ERROR] [org.gradle.BuildExceptionReporter]    at proguard.ProGuard.execute(ProGuard.java:73)
  17:57:41.822 [ERROR] [org.gradle.BuildExceptionReporter]    at proguard.gradle.ProGuardTask.proguard(ProGuardTask.java:1074)
  17:57:41.822 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
  17:57:41.822 [ERROR] [org.gradle.BuildExceptionReporter]    ... 54 more
  17:57:41.823 [ERROR] [org.gradle.BuildExceptionReporter] 
  17:57:41.823 [LIFECYCLE] [org.gradle.BuildResultLogger] 
  17:57:41.823 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
  17:57:41.823 [LIFECYCLE] [org.gradle.BuildResultLogger] 
  17:57:41.823 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 25.463 secs
  </code></pre>
  
  <p>This is my config</p>
  
  <pre><code>buildscript {
      repositories {
          maven { url 'https://maven.fabric.io/public' }
      }
  
      dependencies {
          classpath 'io.fabric.tools:gradle:1.+'
      }
  }
  
  apply plugin: 'com.android.application'
  apply plugin: 'io.fabric'
  
  repositories {
      maven { url 'https://maven.fabric.io/public' }
  }
  
  android {
      compileSdkVersion 23
      buildToolsVersion "23.0.1"
      defaultConfig {
          applicationId "com.MyApp"
          minSdkVersion 16
          targetSdkVersion 23
          versionCode 9
          versionName "0.9.3"
          multiDexEnabled = true
      }
      packagingOptions {
          exclude 'META-INF/NOTICE'
          exclude 'META-INF/DEPENDENCIES.txt'
          exclude 'META-INF/LICENSE.txt'
          exclude 'META-INF/NOTICE.txt'
          exclude 'META-INF/NOTICE'
          exclude 'META-INF/LICENSE'
          exclude 'META-INF/DEPENDENCIES'
          exclude 'META-INF/notice.txt'
          exclude 'META-INF/license.txt'
          exclude 'META-INF/dependencies.txt'
          exclude 'META-INF/LGPL2.1'
      }
      useLibrary 'org.apache.http.legacy'
      buildTypes {
          release {
              minifyEnabled true
              proguardFiles getDefaultProguardFile('proguard-android.txt'),
                      'proguard-android-optimize.txt'
          }
      }
  }
  
  dependencies {
      compile files('libs/org.apache.http.legacy.jar')
  
      compile 'org.apache.httpcomponents:httpclient-android:4.3.5'
      compile('org.apache.httpcomponents:httpmime:4.3.5') {
          exclude module: 'org.apache.httpcomponents:httpclient'
      }
  
      compile 'com.android.support:appcompat-v7:23.0.1'
      compile 'com.google.android.gms:play-services:7.5.0'
      compile 'com.mixpanel.android:mixpanel-android:4.6.2'
      compile 'com.android.support:recyclerview-v7:23.0.1'
      compile 'com.facebook.android:facebook-android-sdk:4.1.0'
      compile 'com.soundcloud.android:android-crop:1.0.0@aar'
      compile 'com.android.support:support-v4:23.0.1'
      compile('com.crashlytics.sdk.android:crashlytics:2.5.1@aar') {
          transitive = true;
      }
  }
  </code></pre>
  
  <p>Thanks in advance</p>