title: Changing distributionUrl on gradle-wrapper.properties from 6.9 to 7.1.1 gives an error
body: <p>I'm upgrading to Android Studio Arctic Fox and everything is going fine except for the Gradle update.</p>
  <p>With <code>distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip</code> everything works fine, but as soon as I move to <code>distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip</code> I get this error:</p>
  <p><code>Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:</code></p>
  <p>There are no more details than that.</p>
  <p>I first made the move using the upgrade tool for AGP and got the same error so I looked at what all changed and tried one change at a time to see which one is causing the problem and it is the <code>distributionUrl</code>.</p>
  <p>I know there are a lot of questions and answers for this <code>MultipleCompilationErrorsException</code> error but they are either very outdated or talk about things like misspellings.</p>
  <p>Anyone have any idea what the issue could be or how I can get more details regarding this problem?</p>
  <p>Edit: since I know a lot of answers recommend switching jdk. I am currently using 11 but also tried jdk 8, same problem.</p>
  <p>Edit: running <code>gradlew wrapper</code> I get this error, hopefully that helps me fix it:</p>
  <pre><code>......maven-push.gradle': 46: unable to resolve class MavenDeployment
     @ line 46, column 34.
                       beforeDeployment { MavenDeployment deployment -&gt; signing.signPom(deployment) }
                                        ^
  
    1 error
  </code></pre>
  <p>Edit: An open source project I had as a module had an extra script and that seemed to be the issue, removing that file that I don't need has fixed it.</p>