title: (org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac' ) while using firebase
body: <p>i am working on a chat app and i want to use the older dependencies but while using it i faced these issues</p>
  
  <p><strong>Error</strong>    </p>
  
  <blockquote>
    <p>org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
        at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
        at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
    org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
        ... 107 more</p>
  </blockquote>
  
  <p><strong>Gradle file</strong>    </p>
  
  <pre><code>dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      //noinspection GradleCompatible
      implementation 'com.android.support:appcompat-v7:27.1.1'
      implementation 'com.android.support.constraint:constraint-layout:1.0.2'
      implementation 'com.android.support:design:27.1.1'
      implementation 'com.google.firebase:firebase-auth:10.2.0'
      implementation 'com.android.support:support-v4:27.1.1'
      implementation 'com.google.firebase:firebase-database:10.2.0'
      implementation 'com.google.firebase:firebase-storage:10.2.0'
      implementation 'com.theartofdev.edmodo:android-image-cropper:2.4.+'
      implementation 'com.squareup.picasso:picasso:2.5.2'
      implementation 'com.firebaseui:firebase-ui-database:1.2.0'
      implementation 'com.squareup.okhttp:okhttp:2.5.0'
      implementation 'id.zelory:compressor:2.0.0'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.1'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
      implementation 'de.hdodenhof:circleimageview:2.1.0'
  
  }
  
  apply plugin: 'com.google.gms.google-services'    
  </code></pre>