如何解决此错误“在创建Android签名证书SHA-1时在c:\ Users \ kulde \ .android \中找不到debug.keystore" [英] how to solve this error 'debug.keystore not found inside c:\Users\kulde\.android\' while creating Android Signing Certificate SHA-1

查看:55
本文介绍了如何解决此错误“在创建Android签名证书SHA-1时在c:\ Users \ kulde \ .android \中找不到debug.keystore"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建需要Android签名证书SHA-1的Google登录应用.

i am trying to create google login app in which i need Android Signing Certificate SHA-1.

开头是.android文件夹,其中包含另外两个文件但是那些不是debug.keystore,所以我在stackoverflow上读了一些表示删除.android文件夹,它将在重建时自动创建项目,所以我做到了,但没有创建任何.android文件夹或debug.keystore

At the starting there is .android folder in which contain two other files but those are not debug.keystore so i read somewhere on stackoverflow they said delete .android folder its will automatically created when rebuild the project so i did it but it not created any .android folder or debug.keystore

我尝试了各种命令,仅给出以下错误

i tried various command its giving only error given below

C:\Program Files\Java\jdk1.8.0_65\bin>keytool -list -v -keystore 
 "C:\Users\kulde\.android\debug.keystore" -alias androiddebugkey -storepass 
 android -keypass android
 keytool error: java.lang.Exception: Keystore file does not exist: 
 C:\Users\kulde\.android\debug.keystore
 java.lang.Exception: Keystore file does not exist: 
    C:\Users\kulde\.android\debug.keystore
    at sun.security.tools.keytool.Main.doCommands(Main.java:742)
    at sun.security.tools.keytool.Main.run(Main.java:340)
    at sun.security.tools.keytool.Main.main(Main.java:333)

推荐答案

与其使用不太安全的 debug.keystore ,而是使用您自己创建的keyStore.遵循相同的操作

Instead of using debug.keystore which is less secure use your own created keyStore. Follow this to do the same

创建密钥库后,请在Android Studio的终端中运行以下命令.

After you created your keystore, run the following command in terminal of Android studio.

keytool -list -v -keystore存储.jks文件的路径"

在此终端之后,将询问您在上一步中创建的密码.

After this terminal will ask for password which you have created in above step.

最后,您将获得SHA-1证书.

Finally you will get your SHA-1 certificate.

确保安全存储密钥库.以后您上载应用程序时将使用它.

Make sure you store your keystore safely. It will be used in future when you upload your App.

这篇关于如何解决此错误“在创建Android签名证书SHA-1时在c:\ Users \ kulde \ .android \中找不到debug.keystore"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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