title: Flutter App not installable from Google store for Android 12
body: <p>I'am trying to start internal testing for my flutter App in the Google Play Console. It works for other devices except those with Android 12. On Android 12 I'm not able to install the App. But the App runs flawlessly on an Android 12 Emulator.</p>
  <p><a href="https://i.stack.imgur.com/QjKqw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QjKqw.jpg" alt="App not installable on Android 12" /></a></p>
  <p>I've already followed the instructions at this question
  <a href="https://stackoverflow.com/questions/69897658/flutter-app-not-installable-from-google-store-for-android-12-despite-being-set-t">Flutter App not installable from Google store for Android 12 despite being set to targetSDK 31</a>. Because it didn't work either, I created a new clean Flutter project and uploaded it without changing anything. The result was the same: The app was downloadable on all devices except the ones with Android 12.</p>
  <p>My build.gradle file:</p>
  <pre><code>def localProperties = new Properties()
  def localPropertiesFile = rootProject.file('local.properties')
  if (localPropertiesFile.exists()) {
      localPropertiesFile.withReader('UTF-8') { reader -&gt;
          localProperties.load(reader)
      }
  }
  
  def flutterRoot = localProperties.getProperty('flutter.sdk')
  if (flutterRoot == null) {
      throw new GradleException(&quot;Flutter SDK not found. Define location with flutter.sdk in the local.properties file.&quot;)
  }
  
  def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
  if (flutterVersionCode == null) {
      flutterVersionCode = '1'
  }
  
  def flutterVersionName = localProperties.getProperty('flutter.versionName')
  if (flutterVersionName == null) {
      flutterVersionName = '1.0'
  }
  
  apply plugin: 'com.android.application'
  apply plugin: 'kotlin-android'
  apply from: &quot;$flutterRoot/packages/flutter_tools/gradle/flutter.gradle&quot;
  
  android {
      compileSdkVersion 31
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  
      kotlinOptions {
          jvmTarget = '1.8'
      }
  
      sourceSets {
          main.java.srcDirs += 'src/main/kotlin'
      }
  
      defaultConfig {
          applicationId &quot;myAppId&quot;
          minSdkVersion 21
          targetSdkVersion 31
          versionCode flutterVersionCode.toInteger()
          versionName flutterVersionName
      }
  }
  
  flutter {
      source '../..'
  }
  
  dependencies {
      implementation &quot;org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version&quot;
  }
  </code></pre>
  <p>Flutter doctor:</p>
  <p><a href="https://i.stack.imgur.com/BtsvJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BtsvJ.png" alt="flutter doctor" /></a></p>