Repository: flutter
Issue: Gradle update cause app stuck on production
Labels: platform-android,engine,a: release,a: production,has reproducible steps,P2,c: fatal crash,found in release: 2.0,found in release: 2.1,team-android,triaged-android

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->

Use Android Studio suggestions to update Gradle and Gradle plugin in our flutter/android project. 
The below configurations will be updated:
* `android/gradle/wrapper/gradle-wrapper.properties`

![image](https://user-images.githubusercontent.com/12233746/104104411-4c1ec380-52a8-11eb-85ee-2c4eda3f18c4.png)
* `android/build.gradle`

![image](https://user-images.githubusercontent.com/12233746/104104406-3e693e00-52a8-11eb-9a84-f8c073371b42.png)

All works well during debug with emulators and real devices, but when I load the appbundle to the store in order to deliver it to testers, the app start and stuck at splash screen.
This is the command I use to generate the obfuscated appbundle: 
`flutter build appbundle --release --obfuscate --split-debug-info=./`

I don't know what is the exact error because I don't really know hot to debug this situation (app in release mode from store). But to keep app working I'm obliged to revert Gradle update.

Why this problem happens only when on production? Is it a framework bug?

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
enrico@Enricos-MBP my_app % flutter analyze
Analyzing my_app...                                                  
No issues found! (ran in 8.1s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
enrico@Enricos-MBP my_app % flutter doctor -v
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.1 20C69 darwin-x64, locale en-IT)
    • Flutter version 1.22.5 at /Users/enrico/SDKs/flutter
    • Framework revision 7891006299 (4 weeks ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4

 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/enrico/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.0

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin installed
    • Dart plugin version 201.9317
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.52.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.18.1

[✓] Connected device (1 available)
    • SM A520F (mobile) • 52105e03ea34247d • android-arm64 • Android 8.0.0 (API 26)

• No issues found!
```

</details>