如何在 eclipse for android 中设置用于调试的自定义密钥库 [英] How to set a custom keystore for debugging in eclipse for android

查看:35
本文介绍了如何在 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:

基本上你应该做的是将别名 androiddebugkeystorepasswdkeypasswd 都更改为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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆