I have this error at the moment to make flutter build appbundle
this is the error:
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 sd from store "C:flutter_projectcursin2cursin-mainandroidappupload-keystore.jks": 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 6s
Running Gradle task 'bundleRelease'... 9,1s
Gradle task bundleRelease failed with exit code 1
PS C:flutter_projectcursin2cursin-main>
i’ve tried all ways to fix it, but the error is still appearing.
my key.properties:
storePassword=ul109000
keyPassword=ul109000
keyAlias=sd
storeFile=C:/flutter_project/cursin2/cursin-main/android/app/upload-keystore.jks
4
Answers
The only method to solve this, that worked for me was:
For example: "./upload-keystore.jks" to "C:/key/myapp/upload-keystore.jks" 3. flutter build appbundle
in android
app/ build.gradle
inside
android
tagstoreFile path will be
./upload-keystore.jks
and
Delete this:
First
in
android app/ build.gradle
replace this
with this
Second
remove
upload-keystore.jks
in your generation path in my case (Ubuntu OS)the path is
/home/user/upload-keystore.jks
Third
genrate a new key with with extra attribute
for Linux