简体   繁体   中英

How to add Embed Google Maps into android app

But to do that I need Google Maps v2 API key and to get that from the Google console I have to enter SHA1 of my app. What the problem is I can't get the SHA1 of the app because I am developing it using AIDE.

I saw a solution on Google plus blog-it suggest to use zipSigner app to get it but I can't understand it as it isn't proofed. So how can I get the SHA1 on AIDE?

Even if you're developing using AIDE, the APK you generate should be signed with the same key as if you were using Android Studio, this key is under ~/.android/debug.keystore. Just follow the instructions to generate your API key using this key.

If you can't find this file or AIDE works in an absolute different way (which is possible, i don't know) you can always generate an APK and get the SHA1 key from it. Just follow the instructions under this SO post: How do I find out which keystore was used to sign an app?

This way you can get your SHA1 key even if you don't know where's the file that signed the app.

打开命令提示符并通过 cmd 转到您的 java bin 目录:C:\\Program Files\\Java\\jdk1.7.0_71\\bin> 现在在您的 cmd 中输入以下命令:keytool -list -v -keystore c:\\users \\your_user_name.android\\debug.keystore -alias androiddebugkey -storepass android -keypass android

Open Command Prompt and type

cd C:\Program Files\Java\jre7\bin (enter)

and type this.

keytool -list -v -keystore "C:\Users\your_pc_name\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

copy value from SHA1: (05:C1:48:C8:70:DA:8D:44:27:45:3C:18:72:10:FD:9A:89:EF:00:8B) something like this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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