1. 程式人生 > >報Keystore was tampered with, or password was incorret的原因

報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。如下圖

  next


next


finish後就會生成keystore和一個APK。

現在我們將生成的tes.keystore設定的Custom debug keystore 就會報錯。如下圖:


這個提示很明確,就是預設的金鑰庫被更改而且密碼也不是預設的。