解决Android Studio下flutter使用签名构建失败的问题

在 Android Studio 运行 flutter build apk 命令来构建安装包时,如果使用了签名,我们可能会遇到下面的问题:

1
2
Failed to read key upload from store "<your keystore>": Integrity check failed: 
java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available

本文将介绍这一问题的解决办法

环境

  • windows 10

  • Android Studio:

    Android Studio Arctic Fox | 2020.3.1 Patch 3

    Build #AI-203.7717.56.2031.7784292, built on October1.2021

    Runtime version: 11.0.10+0-b96-7249189 amd64

  • flutter:2.2.3

  • Dart:2.13.4

阅读更多