安卓工作室。构建已签名的APK。获取密钥失败
我几个月来一直在构建我的应用程序的发布版本,现在突然我收到了这个错误。
Failed to read key ******** from store ***** Get Key Failed. Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
这太令人沮丧了。
到目前为止我所做的
- 阅读有关此错误的所有帖子并尝试所有解决方案
- 验证我的密码是正确的
- 选中和取消选中“保存密码”
- 验证我的密钥库位置是否正确
回答
如果您收到类似 的错误block not properly padded,bad key或者PKCS12在签署 App Bundle 或 APK 时,请尝试对密钥和密钥库文件使用相同的密码,它对我有用。