简体   繁体   English

debug.keystore不存在

[英]debug.keystore does not exist

I'm trying to generate an MD5 fingerprint but the problem is that everytime i try typing in the whole code, it says debug.keystore does not exist. 我正在尝试生成MD5指纹,但问题是每次我尝试输入整个代码时,都说debug.keystore不存在。 I've seem multiple different threads on the same thing but none of them seemed to really help my issue. 我似乎在同一件事上有多个不同的线程,但它们似乎都没有真正帮助我解决问题。

What i type in is 我输入的是

C:\Program Files\Java\jdk1.7.0_01\bin>keytool -v -list -alias
androiddebugkey -keystore debug.keystore -storepass android -keypass android

Can sombody please help me debug this problem? 可以sombody请帮我调试这个问题? thank you. 谢谢。

If you are using Eclipse you can find the location of your debug keystore with: 如果您使用的是Eclipse,则可以使用以下命令查找调试密钥库的位置:

Window > Preferences> Android > Click the triangle on left of "Android"to open the sub menu > Build 窗口>首选项> Android>单击“Android”左侧的三角形以打开子菜单>构建

This will tell you location of your debug keystore and let you set a custom debug keystore. 这将告诉您调试密钥库的位置,并允许您设置自定义调试密钥库。

Fortunatelly there is a new Eclipse plugin for that. Fortunatelly有一个新的Eclipse插件。

  • Press Help > Install New Software . 按“ Help > Install New Software
  • Press Add . Add
  • Type a name for your tool, I named it keytool. 输入工具的名称,我将其命名为keytool。
  • For the location paste the following link: http://keytool.sourceforge.net/update 对于该位置粘贴以下链接: http://keytool.sourceforge.net/updatehttp://keytool.sourceforge.net/update

Then check the Keytool and press Next and then Install 然后检查Keytool并按Next,然后按Install

It will ask you if you trust this certificate. 它会询问您是否信任此证书。 Press Ok. 按确定。

When it is installed eclipse will restart and then you will see a new button on your toolbar, called Keytool (it will have a key icon). 安装完成后,eclipse将重新启动,然后您将在工具栏上看到一个名为Keytool的新按钮(它将有一个键图标)。 Press it, fill in your name, password etc. and it will give you your md5 Fingerprint. 按下它,填写你的名字,密码等,它会给你你的md5指纹。 It worked for me. 它对我有用。

Once you have installed the development environment, there is no virtual device defined yet. 安装开发环境后,尚未定义虚拟设备。 If there are no virtual devices created, it will not build this debug.keystore file. 如果没有创建虚拟设备,则不会构建此debug.keystore文件。 So, first create your virtual device. 因此,首先要创建您的虚拟设备。

C:\\Program Files\\Java\\jdk1.6.0_25\\bin>keytool -list -alias androiddebugkey -keystore "c:\\documents and settings\\ndotdes65.android\\debug.keystore" -storepass android -keypass android C:\\ Program Files \\ Java \\ jdk1.6.0_25 \\ bin> keytool -list -alias androiddebugkey -keystore“c:\\ documents and settings \\ ndotdes65.android \\ debug.keystore”-storepass android -keypass android

Try Like this... 试试这样......

place the proper path for debug.keystore.... 为debug.keystore放置正确的路径....

Hope it will work..! 希望它能起作用..!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM