构建 AAB 时出错 - Flutter (Android) - 完整性检查失败: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 不可用
我正在尝试为我的 flutter 应用构建一个 AAB。我使用以下命令生成了密钥库:
keytool -genkey -v -keystore ~/pc-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias pckey
我有一个key.properties文件,我使用flutter文档中提供的代码引用了它。如何解决这个与Java相关的问题?我的程序引发以下异常
* 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 pckey from store "/Users/jrperfetto/pc-keystore.jks": Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available