如何设置自定义密钥库中的调试日食为Android [英] How to set a custom keystore for debugging in eclipse for android
问题描述
我有我使用我的签名APK自定义密钥库。现在我想使用相同的密钥库进行调试。当我去到Eclipse的>窗口 - > preferences-> android->构建并设置我的我得到密钥库被篡改,或密码不正确的自定义密钥存储?
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:
基本上你应该做的是改变两个 storepasswd
和 keypasswd
的别名 androiddebugkey
来机器人。
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
这篇关于如何设置自定义密钥库中的调试日食为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!