【问题标题】:Android Studio. Building signed APK. Get Key Failed安卓工作室。构建签名的 APK。获取密钥失败
【发布时间】:2021-08-29 03:18:12
【问题描述】:

几个月来我一直在构建我的应用程序的发布版本,现在突然间我收到了这个错误。
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.
这真是令人沮丧。

到目前为止我做了什么

  1. 阅读有关此错误的所有帖子并尝试所有解决方案
  2. 验证我的密码正确
  3. 选中和未选中的“保存密码”
  4. 已验证我的密钥库位置正确

【问题讨论】:

  • 尝试对密钥和密钥库文件使用相同的密码。
  • 天啊!那行得通。你真棒。发布它,我会接受它。我也想看看能不能把我的名声捐给你。

标签: android android-studio apk keystore


【解决方案1】:

如果您在签署 App Bundle 或 APK 时收到 block not properly paddedbad keyPKCS12 之类的错误,请尝试对密钥和密钥库文件使用相同的密码,这对我有用。

【讨论】:

  • 您能解释一下为什么它们必须相同吗?
  • @Tura 我其实不知道,你可以发个帖子。
  • 成功了。但不知道为什么。
【解决方案2】:

最近,Android Studio 开始显示一条消息:“警告:PKCS12 KeyStores 不支持不同的存储和密钥密码。忽略用户指定的 -keypass 值。在 Android Studio 中 em>” - 所以,首先,存储密码和密钥密码应该是一样的,就像其他人说的那样。

此外,即使使用相同的密码也出现此错误后,我意识到我们不能在密码上使用@或$之类的字符

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-07
    • 1970-01-01
    相关资源
    最近更新 更多