'How to solve error on releasing app bundle in flutter as given below

I am a Flutter newbie,

I was trying to release the build of an app but I am getting the below error on entering the flutter command "flutter build appbundle" on my mac.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:signReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Failed to read key upload from store "/Users/drole/Desktop/snackbar/android/app/key.jks": Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available

How to resolve the above error, surfed internet but I don't get a proper solution.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source