FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:signReleaseBundle'.
> A failure occurred while executing$BundleToolRunnable
   > Failed to read key upload from store "/Users/alisolanki/upload-keystore.jks": Integrity check failed:
Algorithm HmacPBESHA256 not available

What I've tried:

  1. Tried changing the JDK

Changing JDK

  1. Tried creating a new keystore file (Appbundle gets created, however as it is a new keystore file, it doesn't get accepted to Google Playstore)

I don't want to go through the hassle of making a support request to Google Playstore of changing my upload key as I have the keystore and the password for it as well.

Solution 1: Dilshod Sh

I fixed this issue by following this solution on stackoverflow: Error building AAB - Flutter (Android) - Integrity check failed: Algorithm HmacPBESHA256 not available

I was getting the same error, I try this command

keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload -storetype JKS with extra attribute

-storetype JKS it helps me to solve my problem and successfully create bundle.

The -storetype JKS tag is only required for Java 9 or newer. As of the Java 9 release, the keystore type defaults to PKS12.