title: Error: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. when trying to launch app
body: <p>The error happend after upgrading flutter to latest version <code>2.5.0</code> along side all of my packages and <code>gradle</code> to a newer version</p>
  <p>full error message:</p>
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
  &gt; Failed to find Build Tools revision 29.0.2
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 6s
  Exception: Gradle task assembleDebug failed with exit code 1
  </code></pre>
  <p><code>gradle</code> dependencies in app level:</p>
  <pre><code>implementation 'com.android.support:multidex:2.0.1'
      implementation 'com.google.firebase:firebase-analytics'
      implementation &quot;org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version&quot;
      implementation 'androidx.browser:browser:1.3.0'
  </code></pre>
  <p><code>gradle</code> dependencies in project level:</p>
  <pre><code>classpath 'com.android.tools.build:gradle:4.1.3'
  classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
  classpath 'com.google.gms:google-services:4.3.0'
  </code></pre>
  <p>I have also made sure that my emulator is connected to internet and that I have accepted android sdk license</p>