2

I created an android app that shows google map using Google Map api V2 and it works well with me in my mobile. But when I uploaded the apk of this app to (Google play store), it doesn't show my map.

Could anyone tell me why? and how to solve this issue?

Thanks in advance.

Dmytro Hutsuliak
  • 1,741
  • 4
  • 21
  • 37
Eman87
  • 2,735
  • 7
  • 36
  • 53
  • I solved it by this answer: http://stackoverflow.com/questions/18711342/android-google-map-version-2-shows-blank-white-page – Eman87 Mar 19 '14 at 12:01

3 Answers3

5

Your Maps API key is tied to the SHA1 signature of the keystore that is used to sign the app .apk. When you run your app from eclipse, a debug keystore is used, when you export your app for release, you use a 'real' keystore (it's SHA1 fingerprint is shown at the end of eclipse's export wizard).

So you have to create another Maps API key (to put in your manifest) corresponding with you release keystore for release.

Check Google's documentation here.

fweigl
  • 21,278
  • 20
  • 114
  • 205
  • I Took SHA1 key from List and generated the new key and give SHA1 key with my packagename as following 03:D8:EF:05:04:CF:06:86:15:1A:F1:D3:B1:18:46:F5:xx:xx:xx:xx;packagename and I Puted the new map api key in my manifest. I done this and I see map in the device but not in the google play so I can't understand what I have to do again? could you tell me the steps ?? – Eman87 Sep 12 '13 at 12:18
  • @Eman87 keytool -list -alias MyAndroidKey -keystore C:\Users\myUser\.android\android.jks -storepass mystorepass -keypass mykeypass – iOSAndroidWindowsMobileAppsDev Aug 26 '16 at 11:37
1

This is simple method. Select your project->Right click->Export android application. Fill all requirements. When exporting it will show your SHA 1 finger print. copy that and paste it along with package name in google console. You can see Certificate finger prints in screenshot.Use that SHA1 key.

enter image description here

Shadow
  • 6,864
  • 6
  • 44
  • 93
0

Check whether you are using signed api key when you are exporting. Otherwise map looks blank.

Signed apk for release key procedure is here

Google Map Android API v2 can't display map in play store application

Community
  • 1
  • 1
Shadow
  • 6,864
  • 6
  • 44
  • 93
  • when I use the following command: keytool -list -v -keystore C:\Users\Dt4IT\.android\A.keystore -alias A it gives me the following error: keytool error: java.lang.Exception: Keystore file does not exist: C:\Users\Dt4IT \.android\A.keystore java.lang.Exception: Keystore file does not exist: C:\Users\Dt4IT\.android\A.key store at sun.security.tools.KeyTool.doCommands(Unknown Source) at sun.security.tools.KeyTool.run(Unknown Source) at sun.security.tools.KeyTool.main(Unknown Source) – Eman87 Sep 12 '13 at 12:21
  • i have given reference where A is ur pjt apk ie when u export and sign it right,for that you will generate keystore.so you want to compare that keystore file – Shadow Sep 12 '13 at 12:28
  • I tried the steps in the link and I uploaded it again but it still show maps when run from eclipse but when install from google play it not work. – Eman87 Sep 17 '13 at 09:32
  • you signed your apk and checked? @Eman87 still map is in blank? – Shadow Sep 17 '13 at 10:02
  • yes I signed and created the keystore file and get the SHA-1 then generated the api_key then added to my manifest.xml, when I run from eclipse to my mobile, it works well but when I uploaded to play store then install, it gives me blank page. :S – Eman87 Sep 17 '13 at 10:10
  • it takes some time to update in google play store.when u updated? – Shadow Sep 17 '13 at 10:35
  • I uploaded yesterday. – Eman87 Sep 17 '13 at 10:43
  • I'm using java jre7 instead sdk in eclipse and I used the (C:\Program Files\Java\jre7\bin\keytool), is this cause the blank issue ?? – Eman87 Sep 17 '13 at 10:54