title: Flutter release apk not accepted by Google Play Console
body: <p>I created a key and keystore and signed my apk, following the instructions step by step from the <a href="https://flutter.dev/docs/deployment/android" rel="nofollow noreferrer">official flutter page.</a></p>
  <p>But when I try to upload it to Google Play Console, I get this error:</p>
  <blockquote>
  <p>&quot;You uploaded an APK or Android App Bundle that was signed in debug mode. You need to sign your APK or Android App Bundle in release mode&quot;</p>
  </blockquote>
  <p><a href="https://stackoverflow.com/questions/51688791/google-play-error-when-uploading-flutter-app-debuggable?noredirect=1&amp;lq=1">A similar question</a> is asked before, but it did not solve my issue.</p>
  <p>Here is the relevant part of my app/build.gradle:</p>
  <pre><code>android {
  compileSdkVersion 28
  
  lintOptions {
      disable 'InvalidPackage'
  }
  
  defaultConfig {
      // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
      applicationId &quot;my.package.name&quot;
      minSdkVersion 16
      targetSdkVersion 28
      versionCode flutterVersionCode.toInteger()
      versionName flutterVersionName
      //testInstrumentationRunner &quot;android.support.test.runner.AndroidJUnitRunner&quot;
  }
  
  signingConfigs {
      release {
          keyAlias keystoreProperties['keyAlias']
          keyPassword keystoreProperties['keyPassword']
          storeFile file(keystoreProperties['storeFile'])
          storePassword keystoreProperties['storePassword']
      }
  }
  
  buildTypes {
      release {
          signingConfig signingConfigs.release
  
          minifyEnabled true
          useProguard true
  
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
  </code></pre>
  <p>Here is the screenshot of my Android Studio versions (Android SDK being red is not relevant.):</p>
  <p><img src="https://i.stack.imgur.com/nL5Rw.png" alt="Screenshot of Android Studio showing the used versions." /></p>
  <p>My output.json file:</p>
  <pre><code>[
    {
      &quot;outputType&quot;: {
        &quot;type&quot;: &quot;APK&quot;
      },
      &quot;apkInfo&quot;: {
        &quot;type&quot;: &quot;MAIN&quot;,
        &quot;splits&quot;: [
          
        ],
        &quot;versionCode&quot;: 1,
        &quot;versionName&quot;: &quot;1.0.0&quot;,
        &quot;enabled&quot;: true,
        &quot;outputFile&quot;: &quot;app-release.apk&quot;,
        &quot;fullName&quot;: &quot;release&quot;,
        &quot;baseName&quot;: &quot;release&quot;
      },
      &quot;path&quot;: &quot;app-release.apk&quot;,
      &quot;properties&quot;: {
        
      }
    }
  ]
  </code></pre>