解决:Keystore was tampered with, or password was incorrect 错误。
1. 复制一份正式证书出来作为要修改为的临时调试证书。
2. 修改keystore密码的命令(keytool为JDK带的命令行工具)(将密码改为android):
keytool -storepasswd -keystore xxx.keystore
3. 修改keystore的
alias(别名):
keytool -changealias -keystore xxx.keystore -alias xxx_alias -destalias androiddebugkey
4. 修改alias的密码(将密码改为android):
keytool -keypasswd -keystore xxx.keystore -alias androiddebugkey
5. 查看修改的keystore文件信息:
直接keytool -list -v -keystore xxx.keystore -storepass 密码