title: flutter build apk --release failing with error
body: <p><strong>Update</strong></p>
  <p>Okay I noticed that this issue is not just Android specific, <code> flutter build ios --release</code> also fails with similar type error log - <a href="https://pastebin.pl/view/4539cc24" rel="nofollow noreferrer">https://pastebin.pl/view/4539cc24</a></p>
  <p><code>flutter build apk --release</code> failing with error :</p>
  <blockquote>
  <p>Script '/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1102</p>
  <ul>
  <li>What went wrong:
  Execution failed for task ':app:compileFlutterBuildRelease'.
  Process 'command '/flutter/bin/flutter'' finished with non-zero exit value 1</li>
  </ul>
  </blockquote>
  <p>But flutter pub get, flutter run is working.
  I've tried doing flutter clean, checked all pubspec.yaml dependencies, updated android build.gradle minimum version to satisfy dependency requirements.</p>
  <p>Project environment:
  sdk: &quot;&gt;=2.16.1 &lt;3.0.0&quot;
  Flutter version: 2.10.2(stable channel)</p>
  <p>Has anyone faced anything such? If so what could be some possible solutions to this issue?</p>