title: Flutter - work in debug mode but crash in release apk
body: <p>I tried to use release apk on Android phone but the app crashed on startup</p>
  <p>I’ve tried follow solutions, but it didn’t work</p>
  <ol>
  <li>set <code>minifyEnabled</code> and <code>shrinkResources</code> as false</li>
  <li>change <code>applicationId</code> name</li>
  <li><code>flutter build apk --release --split-per-abi --no-shrink</code></li>
  </ol>
  <p>Here is the plugin list that I used</p>
  <pre><code>cupertino_icons: ^1.0.2
  flutter_barcode_scanner: ^2.0.0
  intl: ^0.17.0
  http: ^0.13.4
  shared_preferences: ^2.0.13
  device_info: ^2.0.3
  </code></pre>
  <p>The Android phone version ⇒ 5</p>
  <p>My <code>flutter build apk</code> message</p>
  <pre class="lang-html prettyprint-override"><code>Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
  Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
  Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
  Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
  Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
  </code></pre>
  <p>build.gradle</p>
  <pre class="lang-html prettyprint-override"><code>android {
      compileSdkVersion flutter.compileSdkVersion
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  
      kotlinOptions {
          jvmTarget = '1.8'
      }
  
      sourceSets {
          main.java.srcDirs += 'src/main/kotlin'
      }
  
      defaultConfig {
          // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
          applicationId &quot;com.example.transport&quot;
          minSdkVersion flutter.minSdkVersion
          targetSdkVersion flutter.targetSdkVersion
          versionCode flutterVersionCode.toInteger()
          versionName flutterVersionName
  
      }
  
      buildTypes {
          release {
              // TODO: Add your own signing config for the release build.
              // Signing with the debug keys for now, so `flutter run --release` works.
              signingConfig signingConfigs.debug
              minifyEnabled false
              shrinkResources false
          }
      }
  }
  </code></pre>