title: Android Studio Project won't build
body: <p>My android application is continually failing with these two error messages:</p>
  
  <pre><code>Error:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
  
  Error:Execution failed for task ':app:mergeDebugResources'. &gt; Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
  </code></pre>
  
  <p>I do not know what happened. Looking at some issues online I tried multiple solutions including adding multiDexEnabled true, cleaning the build, and deleting unnecessary .jar file, except I do not have any .jar files in my lib folder...</p>
  
  <p>This is my current build.gradle (Module:app):</p>
  
  <pre><code>apply plugin: 'com.android.application'
  android {
      compileSdkVersion 25
      buildToolsVersion "24.0.3"
      defaultConfig {
          applicationId "com.zhephyr.somedaytoday"
          minSdkVersion 24
          targetSdkVersion 25
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
          multiDexEnabled true
      }
      dexOptions {
          javaMaxHeapSize "4g"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
          exclude group: 'com.android.support', module: 'support-annotations'
      })
      compile 'com.android.support:appcompat-v7:25.1.0'
      compile 'com.android.support:design:25.1.0'
      testCompile 'junit:junit:4.12'
      compile 'com.google.android.gms:play-services:10.0.1'
      compile 'com.google.android.gms:play-services-location:10.0.1'
      compile 'com.google.android.gms:play-services-places:10.0.1'
      compile 'com.google.firebase:firebase-core:10.0.1'
      compile 'com.google.firebase:firebase-database:10.0.1'
      compile 'com.google.firebase:firebase-auth:10.0.1'
      compile 'com.android.support:multidex:1.0.1'
  }
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>And this is my manifest 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="com.zhephyr.somedaytoday"&gt;
  
          &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
          &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
  
          &lt;application
              android:allowBackup="true"
              android:icon="@mipmap/ic_launcher"
              android:label="@string/app_name"
              android:supportsRtl="true"
              android:theme="@style/AppTheme"&gt;
              &lt;activity
                  android:name=".MainActivity"
                  android:label="@string/app_name"
                  android:theme="@style/AppTheme.NoActionBar"&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;activity
                  android:name=".LoginActivity"
                  android:label="@string/app_name"
                  android:launchMode="singleInstance"
                  android:theme="@style/AppTheme.NoActionBar" /&gt;
              &lt;activity
                  android:name=".AddEvent"
                  android:label="@string/title_activity_add_event"
                  android:theme="@style/AppTheme.NoActionBar" /&gt;
              &lt;meta-data
                  android:name="com.google.android.geo.API_KEY"
                  android:value="AIzaSyBu-F3po4mVAA4jMNFHO6eY988AAtzCAEk" /&gt;
          &lt;/application&gt;
  
      &lt;/manifest&gt;
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Ran <code>gradlew clean packageDebug --stacktrace</code> and this was the result:</p>
  
  <pre><code>Exception is:
  org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:mergeDebugResources'.
          at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
          at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
          at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
          at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:66)
          at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
          at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
          at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
          at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
          at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
          at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
          at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
          at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
          at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
          at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
          at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
          at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
          at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
          at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
          at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
          at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
          at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
          at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
          at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:153)
          at org.gradle.internal.Factories$1.create(Factories.java:22)
          at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
          at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53)
          at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:150)
          at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
          at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:98)
          at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:92)
          at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
          at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63)
          at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:92)
          at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83)
          at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:99)
          at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
          at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
          at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:48)
          at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
          at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)
          at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)
          at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52)
          at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
          at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
          at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
          at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
          at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
          at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
          at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
          at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
          at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
          at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
          at org.gradle.util.Swapper.swap(Swapper.java:38)
          at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
          at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
          at org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:40)
          at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
          at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
          at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
          at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
          at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
          at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
          at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
          at org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41)
          at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
          at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
          at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:237)
          at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
          at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
  Caused by: com.android.build.gradle.tasks.ResourceException: Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
          at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:161)
          at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:88)
          at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
          at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:245)
          at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221)
          at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:232)
          at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)
          at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
          at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
          ... 68 more
  Caused by: Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
          at com.android.ide.common.res2.MergedResourceWriter.end(MergedResourceWriter.java:268)
          at com.android.ide.common.res2.DataMerger.mergeData(DataMerger.java:301)
          at com.android.ide.common.res2.ResourceMerger.mergeData(ResourceMerger.java:410)
          at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:154)
          ... 76 more
  Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
          at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
          at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
          at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
          at com.android.ide.common.res2.MergedResourceWriter.end(MergedResourceWriter.java:264)
          ... 79 more
  Caused by: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
          at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
          at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
          at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
          at com.android.builder.internal.aapt.v1.AaptV1.lambda$compile$0(AaptV1.java:446)
  Caused by: com.android.ide.common.process.ProcessException:
          at com.android.builder.png.AaptProcess$NotifierProcessOutput.out(AaptProcess.java:284)
          at com.android.builder.png.AaptProcess$ProcessOutputFacade.out(AaptProcess.java:215)
          at com.android.utils.GrabProcessOutput$2.run(GrabProcessOutput.java:143)
  </code></pre>