title: Algorithm "HmacPBESHA256" is not available and what is that?
body: <p>I can#t build a Apk oder Appbundle. I have a key in the right folder. I tried</p>
  <pre><code>keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload 
  </code></pre>
  <p>then, because it doesn't work</p>
  <pre><code>`/Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home/bin/keytool -genkey -v -keystore ~/pc-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias pckey`
  </code></pre>
  <p>and it doesn't work.</p>
  <p><strong>Terminal</strong>:</p>
  <pre><code>... % **flutter build apk**
  
   Building with sound null safety 
  
                                                                          
  FAILURE: Build failed with an exception.                                
                                                                          
  * What went wrong:                                                      
  Execution failed for task ':app:packageRelease'.                        
  &gt; A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
     &gt; com.android.ide.common.signing.KeytoolException: Failed to read key upload from store &quot;/Users/.../upload-keystore.jks&quot;: Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available
                                                                          
  * Try:                                                                  
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
                                                                          
  * Get more help at https://help.gradle.org                              
                                                                          
  BUILD FAILED in 5s                                                      
  Running Gradle task 'assembleRelease'...                                
  Running Gradle task 'assembleRelease'... Done                       6,7s
  Gradle task assembleRelease failed with exit code 1
  </code></pre>
  <p><strong>My build.grade</strong></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;
  
  
  def keystoreProperties = new Properties()
  def keystorePropertiesFile = rootProject.file('key.properties')
     if (keystorePropertiesFile.exists()) {
       keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
     }
  
  android {
      compileSdkVersion 30
  
      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.myappname&quot;
          minSdkVersion 16
          targetSdkVersion 30
          versionCode flutterVersionCode.toInteger()
          versionName flutterVersionName
      }
  
      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;
  }
  </code></pre>
  <p><strong>key.properties</strong></p>
  <pre><code>storePassword=MyPasswort
  keyPassword=MyPasswort
  keyAlias=keys
  storeFile=/Users/.../upload-keystore.jks
  </code></pre>
  <p>I do everything last time and it worked, but now, it doesn't want. I use Visual Studio and tried Android Studio and there I couldn't create an apk. Are there other ways to create a working APK for testing purposes or for solutions to how I could solve the problem or what could be the cause</p>