Flutter - Gradle task assembleRelease failed with exit code 1

Viewed 1506

I am getting the following error while building my flutter app. I am not getting any errors while testing the app on an emulator, and it's working fine. I don't know what's wrong with the building. I appreciate any help you can provide.

flutter version: v2.5.3 | devtools: v2.8.0

I am using this command to build the app:

flutter build apk --split-per-abi

here is the error log:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageRelease'.
> Multiple task action failures occurred:
   > A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
      > com.android.ide.common.signing.KeytoolException: Failed to read key upload from store "/Users/USER_NAME/Documents/APP_NAME/main_files/source/wordpress_app/android/app/upload-keystore.jks": Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available
   > A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
      > com.android.ide.common.signing.KeytoolException: Failed to read key upload from store "/Users/USER_NAME/Documents/APP_NAME/main_files/source/wordpress_app/android/app/upload-keystore.jks": Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available
   > A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
      > com.android.ide.common.signing.KeytoolException: Failed to read key upload from store "/Users/USER_NAME/Documents/APP_NAME/main_files/source/wordpress_app/android/app/upload-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 2m 14s
Running Gradle task 'assembleRelease'...                          135.8s
Gradle task assembleRelease failed with exit code 1
1 Answers
Related