如何获得在Android的工作室调试模式SHA1指纹证书?指纹、如何获得、证书、工作室

2023-09-11 12:14:00 作者:身冷致病√心冷致命

我已经转移自己从的Eclipse Android的工作室。现在我想在我的地图应用程序。所以,我需要我的 SHA1指纹证书编号。当我使用的Eclipse 这是正确的在窗口 - > preferences - > Android的 - >建立。但在Android的工作室我无法找到任何这样的选项,这样我可以轻松地找到指纹。我使用窗口。我从这个链接的 阅读 Android的工作室标志在调试模式下您的应用程序时自动运行或调试从IDE的项目。 所以,我想在命令行从这个链接设置我的java bin路径后运行这一点,遗憾的是不能找到我的指纹。 这是说,非法选项。 的keytool -list -v -keystore%USERPROFILE%\。机器人\ debug.keystore-alias androiddebugkey -storepass安卓-keypass机器人 有没有办法找到 SHA1指纹 Android的工作室好像是很容易的日食?由于我是新手在机器人工作室的任何人都可以给予充分的过程中找到它??

I have shifted myself from Eclipse to Android Studio.Now I am trying to work on my Map app. So I need my SHA1 fingerprint certificate number. When I was using Eclipse it was right under Windows -> Preferences -> Android -> Build. But in android studio I couldn't find out any option like this so that I could find easily the fingerprint. I am using Windows. I have read from this link that Android Studio signs your app in debug mode automatically when you run or debug your project from the IDE. So I tried to run this in command line after setting my java bin path from this link and unfortunately couldn't find my fingerprint. It is saying that Illegal Option. keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android Is there any way to find SHA1 fingerprint from android studio like it was very easy in eclipse?? As I am newbie in android studio can anyone give the full process to find it??

修改:另一件事我想补充一点,我有我的日食发生 SHA1指纹和previously我有我的应用程序登记该指纹谷歌开发者控制台和我在eclipse制作该应用程序由 API密钥。是一样的API密钥可以在此我的项目在 Android的工作室来工作 ??

EDIT: Another thing I want to add that I have my eclipse generated SHA1 fingerprint and previously I have my app registered on that fingerprint in google developer console and I worked on that app in eclipse by that api key. Is the same api key can be worked on this my project in Android Studio??

另一个编辑:我有一个答案与备选的接受的答案。有时出现这种情况。所以,不要忘了看看上..

推荐答案

我的问题是一样的,我也转移我的谷歌地图项目由 ECLIPSE 机器人 STUDIO 。 我已经按照这个解决我的问题: -

My Problem is the same as i have also shifted my google maps project from ECLIPSE to ANDROID STUDIO. I have solved my problem by following this:-

通过CMD进入你的java bin目录:

Go to your java bin directory via the cmd:

C:\ Program Files文件\的Java \ jdk1.7.0_71 \ BIN>

C:\Program Files\Java\jdk1.7.0_71\bin>

现在在你的CMD输入以下命令:

Now type in the below command in your cmd:

keytool -list -v -keystore c:\users\your_user_name\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android

例如:

keytool -list -v -keystore c:\users\James\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android

,你会得到SHA1

and you will get SHA1

然后创建新密钥的 的https://$c$c.google.com/apis/控制台 的,因为我的包名得到了改变,然后使用该密钥在我的应用程序。工作得很好。

then i created new key from https://code.google.com/apis/console because of my package name got changed and then use this key in my application. works fine.

请确保你是在 BIN 的 jdkX.X.X_XX文件夹(我的文件夹名称为jdk1.7.0_71),否则如果你不知道什么文件夹名称你再发现它打开java文件夹,你会看到什么样的文件夹名称是,但你必须在你的BIN文件夹中,然后运行该命令,今天我已经通过上述方法得到的cmd命令我SHA1值。

make sure you are in BIN folder of jdkX.X.X_XX(mine folder name is jdk1.7.0_71) , or else if you dont know what folder name you have then find it by opening java folder and you will see what folder name is but you must be in your BIN folder and then run this command , today i have got my SHA1 value in cmd command by the above procedure.

快照: