title: Unable to sync Gradle with Firebase Crashlytic 2.6.0 using Android Studio 4.2
body: <p>Project-level build.gradle</p>
  <pre><code>buildscript {
      addRepos(repositories)
      dependencies {
  
          classpath 'com.google.gms:google-services:4.3.5'
  
          // Crashlytic
          classpath 'com.google.firebase:firebase-crashlytics-gradle:2.6.0'
  
      }
  }
  </code></pre>
  <p>App-level build.gradle</p>
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'kotlin-android'
  apply plugin: 'kotlin-android-extensions'
  apply plugin: 'kotlin-kapt'
  apply plugin: 'com.google.gms.google-services'
  apply plugin: 'com.google.firebase.crashlytics'
  
  dependencies {
  
      // Crashlytic
      implementation 'com.google.firebase:firebase-crashlytics:18.0.0'
  
  }
  </code></pre>
  <p>With gradle 4.3.5 and Firebase crashlytic 2.6.0 My app stop compiling with the error below</p>
  <pre><code>class org.gradle.api.internal.file.DefaultFilePropertyFactory$DefaultDirectoryVar$2 cannot be cast to class org.gradle.api.file.Directory (org.gradle.api.internal.file.DefaultFilePropertyFactory$DefaultDirectoryVar$2 and org.gradle.api.file.Directory are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @68be2bc2)
  class org.gradle.api.internal.file.DefaultFilePropertyFactory$DefaultDirectoryVar$2 cannot be cast to class org.gradle.api.file.Directory (org.gradle.api.internal.file.DefaultFilePropertyFactory$DefaultDirectoryVar$2 and org.gradle.api.file.Directory are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @68be2bc2)
  
  Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
  
  Re-download dependencies and sync project (requires network)
  The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
  
  Stop Gradle build processes (requires restart)
  Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
  
  In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
  </code></pre>
  <p><strong>But everything works if I change Firebase crashlytic version to 2.3.0</strong></p>
  <p>Do you guys have any idea why is this happen?</p>