title: Flutter failed to compile apk: Finished with error: Gradle task assembleDebug failed with exit code 1
body: <p>Flutter failed to compile an apk. I am not sure if this has something to do with AndroidX or something.</p>
  <pre><code>Launching lib\main.dart on Android SDK built for x86 in debug mode...
  Initializing gradle...
  Resolving dependencies...
  Running Gradle task 'assembleDebug'...
  registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
  registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
  registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
  registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
  registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
  Finished with error: Gradle task assembleDebug failed with exit code 1
  </code></pre>
  <p>I ran <code>flutter clean</code>. I also ran <code>flutter run -v</code>. This is what happened: <a href="https://1drv.ms/t/s!An3OLJ7n0CjEku1SBrSABWab901z3Q" rel="nofollow noreferrer">https://1drv.ms/t/s!An3OLJ7n0CjEku1SBrSABWab901z3Q</a></p>
  <p>(I have used an external file locker because the stack trace is too large for the Stack Overflow editor).</p>
  <p>This issue is similar to <a href="https://github.com/flutter/flutter/issues/30634" rel="nofollow noreferrer">https://github.com/flutter/flutter/issues/30634</a></p>