如何在 visual studio 中处理 'Keystore was tampered with or password was incorrect'
How to handle 'Keystore was tampered with or password was incorrect' in visual studio
尝试通过 Visual Studio (V16.6.2) 对已发布应用程序的新版本进行签名时出现错误
Keystore was tampered with, or password was incorrect
这对我来说是一个巨大的惊喜,因为我很确定我的密码。
可能是什么问题?
在尝试了不同的密码变体数小时后,我尝试了 password-recover tool (suggested in a post in Medium) just to find out that the password i was sure about was actually the right one. Yet, the password kept being rejected by Visual Studio, so i did some research and i came to a thread in github,其中主要的 post 状态为
Password have the next symbols: @ ^ ] $
然后我想,“好的,我的密码还有一个特殊的符号:'%'”,所以,在确定我的密码正确后,我打开了adb 命令提示符 在Visual Studio
并使用 keytool 命令更改 Key Password 和 Keystore Password(这些密码对于在旧 Visual Studio 版本中创建的 keystores 是相同的!:
keytool.exe -keypasswd -alias myalias -keystore "pathtokeystore"
keytool.exe -storepasswd -alias myalias -keystore "pathtokeystore"
通过这样做,我更改了两个密码(再次为两个相同的字符组合,所以我只需要记住一个!),但现在没有特殊字符。
瞧!现在我可以签署我的应用程序了...
我遇到了这个问题,缺乏关于发生的事情的信息真的很烦人。
我通过以下步骤解决了问题:
- 正在 Visul Studio 中创建 APK 存档;
- 使用名为 uber-apk-signer (https://github.com/patrickfav/uber-apk-signer) 的神奇工具对 APK 进行签名
就我而言,我的密码中有一个“\”符号。像这样转义 - "\\" 成功了
尝试通过 Visual Studio (V16.6.2) 对已发布应用程序的新版本进行签名时出现错误
Keystore was tampered with, or password was incorrect
这对我来说是一个巨大的惊喜,因为我很确定我的密码。
可能是什么问题?
在尝试了不同的密码变体数小时后,我尝试了 password-recover tool (suggested in a post in Medium) just to find out that the password i was sure about was actually the right one. Yet, the password kept being rejected by Visual Studio, so i did some research and i came to a thread in github,其中主要的 post 状态为
Password have the next symbols: @ ^ ] $
然后我想,“好的,我的密码还有一个特殊的符号:'%'”,所以,在确定我的密码正确后,我打开了adb 命令提示符 在Visual Studio
并使用 keytool 命令更改 Key Password 和 Keystore Password(这些密码对于在旧 Visual Studio 版本中创建的 keystores 是相同的!:
keytool.exe -keypasswd -alias myalias -keystore "pathtokeystore"
keytool.exe -storepasswd -alias myalias -keystore "pathtokeystore"
通过这样做,我更改了两个密码(再次为两个相同的字符组合,所以我只需要记住一个!),但现在没有特殊字符。
瞧!现在我可以签署我的应用程序了...
我遇到了这个问题,缺乏关于发生的事情的信息真的很烦人。 我通过以下步骤解决了问题:
- 正在 Visul Studio 中创建 APK 存档;
- 使用名为 uber-apk-signer (https://github.com/patrickfav/uber-apk-signer) 的神奇工具对 APK 进行签名
就我而言,我的密码中有一个“\”符号。像这样转义 - "\\" 成功了