报Keystore was tampered with, or password was incorret的原因

当我们想设置Custom debug keystore的时候很常见的报错有Keystore was tampered with, or password was incorret和Unable to find debug key in keystore!

Keystore was tampered with, or password was incorret(密钥存储库是篡改,或者密码是错误的),Eclipse默认的是C:\Users\Administrator\.android\debug.keystore这个密钥库。

报 Keystore was tampered with, or password was incorret 错

这个是什么原因造成的?我们来演示一下报错的制作过程。

1、我们要新建一个keystore.

新建一个名为tes.keystore的文件,密码随意设置,长度不能小于6。如下图

报Keystore was tampered with, or password was incorret的原因_第1张图片

  next

报Keystore was tampered with, or password was incorret的原因_第2张图片

next

报Keystore was tampered with, or password was incorret的原因_第3张图片

finish后就会生成keystore和一个APK。

现在我们将生成的tes.keystore设置的Custom debug keystore 就会报错。如下图:

报Keystore was tampered with, or password was incorret的原因_第4张图片

这个提示很明确,就是默认的密钥库被更改而且密码也不是默认的。

解决方案见设置custom debug keystore 



你可能感兴趣的:(Android)