title: Error while signing android bundle: Execution failed for task ':app:signReleaseBundle'
body: <p>I was trying to build a release build of Flutter android app and got following error: (Macbook M1 using terminal command)</p>
  <pre><code>* What went wrong:                                                      
  Execution failed for task ':app:signReleaseBundle'.                     
  &gt; A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
     &gt; kotlin.KotlinNullPointerException (no error message)
  </code></pre>
  <p>I've no idea how to fix this issue.
  The android/app/build.gradle of relevant part looks like:</p>
  <pre><code>    signingConfigs {
          release {
              keyAlias keystoreProperties['keyAlias']
              keyPassword keystoreProperties['keyPassword']
              storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
              storePassword keystoreProperties['storePassword']
          }
      }
      buildTypes {
          release {
              signingConfig signingConfigs.release
          }
      }
  }
  
  flutter {
      source '../..'
  }
  
  dependencies {
      implementation &quot;org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version&quot;
      implementation 'com.android.support:multidex:2.0.1'
  }
  </code></pre>