title: GoogleCertificatesRslt: not allowed in Kotlin Android Application
body: <p>I am working on an Android application with Kotlin as the development language. The app shows a map and is supposed to load markers. However, the map loads but the markers do not. I get a security exception <code>GoogleCertificatesRslt: not allowed</code> which I found out could be caused by versions. The package that I am using is <code>implementation 'com.google.android.gms:play-services-maps:18.0.2'</code>. Does someone know what the problem is and the possible solution?</p>
  <p>Gradle file:</p>
  <pre><code>plugins {
  id 'com.android.application'
  id 'org.jetbrains.kotlin.android'
  id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
  </code></pre>
  <p>}</p>
  <p>android {
  compileSdk 32</p>
  <pre><code>defaultConfig {
      applicationId &quot;com.ao.wildfire&quot;
      minSdk 21
      targetSdk 32
      versionCode 1
      versionName &quot;1.0&quot;
  
      testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
  }
  
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
      }
  }
  compileOptions {
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8
  }
  kotlinOptions {
      jvmTarget = '1.8'
  }
  buildFeatures {
      viewBinding true
  }
  </code></pre>
  <p>}</p>
  <p>dependencies {</p>
  <pre><code>implementation 'androidx.core:core-ktx:1.7.0'
  implementation 'androidx.appcompat:appcompat:1.4.1'
  implementation 'com.google.android.material:material:1.5.0'
  implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
  implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'
  testImplementation 'junit:junit:4.13.2'
  androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  implementation 'com.google.android.gms:play-services-maps:18.0.2'
  
  // Retrofit
  implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  implementation &quot;com.squareup.okhttp3:okhttp:4.9.0&quot;
  
  // Coroutines
  implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0'
  implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0'
  
  // Coroutine Lifecycle Scopes
  implementation &quot;androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1&quot;
  implementation &quot;androidx.lifecycle:lifecycle-runtime-ktx:2.4.1&quot;
  </code></pre>
  <p>}</p>
  <p>Error</p>
  <pre><code>W/MobStoreFlagStore: Unable to update local snapshot for com.google.android.libraries.consentverifier#com.ao.wildfire, may result in stale flags.
  java.util.concurrent.ExecutionException: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.ao.wildfire, atk=false, ver=220920031.true (go/gsrlt)
      at agv.s(:com.google.android.gms.dynamite_mapsdynamite@220920068@22.09.20 (100700-0):3)
      at agv.get(:com.google.android.gms.dynamite_mapsdynamite@220920068@22.09.20 (100700-0):2)
      at aif.g(:com.google.android.gms.dynamite_mapsdynamite@220920068@22.09.20 (100700-0):2)
      at wy.c(:com.google.android.gms.dynamite_mapsdynamite@220920068@22.09.20 (100700-0):1)
      at xe.run(:com.google.android.gms.dynamite_mapsdynamite@220920068@22.09.20 (100700-0):0)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
      at java.lang.Thread.run(Thread.java:919)
   Caused by: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.ao.wildfire, sha256=[bbe56829a1f8ca5eb01bb8f0feefd7a5a88d6a4d9d7069b33b2ba4d3fc76ec7e], atk=false, ver=220920031.true (go/gsrlt)
      at android.os.Parcel.createException(Parcel.java:2071)
      at android.os.Parcel.readException(Parcel.java:2039)
      at android.os.Parcel.readException(Parcel.java:1987)
      at ef.aZ(:com.google.android.gms.dynamite_mapsdynamite@220920068@22.09.20 (100700-0):2)
      at qs.a(:com.google.android.gms.dynamite_mapsdynamite@220920068@22.09.20 (100700-0):4)
      at ij.e(:com.google.android.gms.dynamite_mapsdynamite@220920068@22.09.20 (100700-0):2)
      at ji.t(:com.google.android.gms.dynamite_mapsdynamite@220920068@22.09.20 (100700-0):2)
      at ji.u(:com.google.android.gms.dynamite_mapsdynamite@220920068@22.09.20 (100700-0):3)
      at ji.e(:com.google.android.gms.dynamite_mapsdynamite@220920068@22.09.20 (100700-0):2)
      at jm.handleMessage(:com.google.android.gms.dynamite_mapsdynamite@220920068@22.09.20 (100700-0):69)
      at android.os.Handler.dispatchMessage(Handler.java:103)
      at android.os.Looper.loop(Looper.java:214)
      at android.os.HandlerThread.run(HandlerThread.java:67)
  </code></pre>