title: A problem occurred evaluating project ':cloud_firestore'
body: <p>I develop a Flutter project with my team members. I recently pulled from github and it gave this error. However, my friends do not have the same problem and do not get error from the same code.</p>
  <p>I get either that error</p>
  <pre><code>FAILURE: Build failed with an exception.
  
  Where:
  Build file 'C:\development\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0\android\build.gradle' line: 41
  
  What went wrong:
  A problem occurred evaluating project ':cloud_firestore'.
  build_2yq8w8slntfd1pcrdfbqqhulb$_run_closure2$_closure4
  </code></pre>
  <p>or that one</p>
  <pre><code>FAILURE: Build failed with an exception.
  
  * Where:
  Build file 'C:\development\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0\android\build.gradle' line: 41
  
  * What went wrong:
  A problem occurred evaluating project ':cloud_firestore'.
  &gt; Incompatible magic value 0 in class file build_$_run_closure2$_closure4
  </code></pre>
  <p>Lines of codes in build.gradle as follows</p>
  <pre><code>39   android {
  40     compileSdkVersion  29
  41     compileOptions {
  42         sourceCompatibility JavaVersion.VERSION_1_8
  43         targetCompatibility JavaVersion.VERSION_1_8
  44     }
  </code></pre>
  <p>What would be the solution? I appreciate your help.</p>
  <p>Whole build.gradle</p>
  <pre><code>
  group 'io.flutter.plugins.firebase.cloudfirestore'
  version '1.0-SNAPSHOT'
  
  buildscript {
      repositories {
          google()
          jcenter()
          mavenLocal()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:3.5.4'
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
          mavenLocal()
      }
  }
  
  apply plugin: 'com.android.library'
  
  def firebaseCoreProject = findProject(':firebase_core')
  if (firebaseCoreProject == null) {
      throw new GradleException('Could not find the firebase_core FlutterFire plugin, have you added it as a dependency in your pubspec?')
  } else if (!firebaseCoreProject.properties['FirebaseSDKVersion']) {
      throw new GradleException('A newer version of the firebase_core FlutterFire plugin is required, please update your firebase_core pubspec dependency.')
  }
  
  def getRootProjectExtOrCoreProperty(name, firebaseCoreProject) {
      if (!rootProject.ext.has('FlutterFire')) return firebaseCoreProject.properties[name]
      if (!rootProject.ext.get('FlutterFire')[name]) return firebaseCoreProject.properties[name]
      return rootProject.ext.get('FlutterFire').get(name)
  }
  
  android {
      compileSdkVersion 29
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
      defaultConfig {
          minSdkVersion 16
          testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
      }
      lintOptions {
          disable 'InvalidPackage'
      }
      dependencies {
          api firebaseCoreProject
          implementation platform(&quot;com.google.firebase:firebase-bom:${getRootProjectExtOrCoreProperty(&quot;FirebaseSDKVersion&quot;, firebaseCoreProject)}&quot;)
          implementation 'com.google.firebase:firebase-firestore'
          implementation 'androidx.annotation:annotation:1.1.0'
      }
  }
  
  apply from: file(&quot;./user-agent.gradle&quot;)
  </code></pre>
  <p>UPDATE</p>
  <p>I just deleted following directories and it works</p>
  <pre><code>C:\Users\USER_NAME\.gradle\caches 
  C:\Users\USER_NAME\.android\build-cache 
  C:\Users\USER_NAME\.android\cache
  </code></pre>