title: Can not Link/Connect Android Studio with Firebase
body: <p>I have been trying to connect Android studio 4.1 with Firebase but it is not getting linked. I followed the instruction given on the firebase website like copying the dependencies, plugins, etc. into the app Gradle build and Project Gradle Build. My Gradle version is 6.5 and Gradle plugin is 4.1.
  The Error shown is:</p>
  <p>org.codehaus.groovy.ast.expr.TupleExpression cannot be cast to org.codehaus.groovy.ast.expr.ArgumentListExpression</p>
  <p>org.codehaus.groovy.ast.expr.TupleExpression cannot be cast to org.codehaus.groovy.ast.expr.ArgumentListExpression
  Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
  Re-download dependencies and sync project (requires network)</p>
  <p>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.</p>
  <p>Stop Gradle build processes (requires restart)</p>
  <p>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.
  <a href="https://i.stack.imgur.com/GupGL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GupGL.png" alt="Error Description" /></a>
  In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.</p>