如何在 eclipse for android 中设置用于调试的自定义密钥库 [英] How to set a custom keystore for debugging in eclipse for android
问题描述
我有一个用于签署我的 apk 的自定义密钥库.现在我想使用相同的密钥库进行调试.当我去 eclipse->windows->preferences->android->build 并设置我的自定义密钥库时,我得到密钥库被篡改,或密码不正确"?
I have a custom keystore that I use for signing my apk. now I want to use the same keystore for debugging. when I go to eclipse->windows->preferences->android->build and set my custom key store I get "Keystore was tampered with, or password was incorrect"?
推荐答案
我遇到了同样的问题,以下是正确创建可用于在 Eclipse 中进行调试的自定义密钥库的步骤:
I had the same issue and here are the steps to properly create a custom keystore that can be used for debugging in Eclipse:
基本上你应该做的是将别名 androiddebugkey
的 storepasswd
和 keypasswd
都更改为android".
Basically what you should do is that change both storepasswd
and keypasswd
for the alias androiddebugkey
to "android".
命令如下:
keytool -changealias -keystore mykeystore.keystore -alias [old alias] -destalias androiddebugkey
keytool -keypasswd -keystore mykeystore.keystore -alias androiddebugkey
keytool -storepasswd -keystore mykeystore.keystore
如果您不知道旧别名,请使用
If you don't know your old alias, look it up using
keytool -list -v -keystore mykeystore.keystore
在命令提示符下无法输入密码
in Command prompt not able to enter the password
这篇关于如何在 eclipse for android 中设置用于调试的自定义密钥库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!