Google maps v2 doesn't showing after publishing in play market
Asked Answered
S

6

5

i have some problem, my app works fine, but when i load it in Play market, maps does not works correctly. I make next:

  1. Get SHA1 keytool -list -v -keystore C:\User\Name/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
  2. In Google console i create API KEY. SHA1;com.kostya.app
  3. Rigth click on project - Android tools - Export signed application packuage
  4. Create new keystore and new *.apk file.
  5. Load it into market.

Where is my mistake? I read this article. Together we can create nice tutorial how to sign app using google maps v2. How to test application at once after loading in play market, without weithing some ours.

Sideling answered 24/9, 2013 at 13:0 Comment(0)
G
9

When your are creating keystore for creating signed apk you have to do this.

  1. change debug.keystore to your created keystore
  2. change alias name to your project name
  3. set the password the same like in your created keystore (not android as in debug mode)

    keytool -list -v -keystore ~/.android/ YOUR_KEYSTORE -alias YOUR_PROJECT_NAME

more help find here

Gocart answered 24/9, 2013 at 13:12 Comment(9)
where i must change it? in my step one?Sideling
are you created keystore for signed apk?Gocart
Yes, i have created it.Sideling
keytool -list -v -keystore ~/.android/ YOUR_KEYSTORE -alias YOUR_PROJECT_NAME i make it now, i get SHA1, than i must go to google library and get api key?? What is the next step?Sideling
You must go to google create new key for your app with that SHA1Gocart
OK, now i must put new api key instead old api key in android manifest file? Or there can be two keys?Sideling
put new key instead of old keyGocart
let us continue this discussion in chatGocart
Hi, I tried the above solution for same problem but I get error as "Alias <PROJECT_NAME> doesnot exist. Please help.Expository
C
4

after publishing the app on play store. on Google Play Console Goto: Release Management >App Signing from "App signing certificate" copy SHA1 and paste it on Google cloud platform API console.

Cutter answered 17/12, 2018 at 16:32 Comment(0)
A
1

You have to create a production keystore, you should not use the debug.keystore.

Check out the documentation.

Aluino answered 24/9, 2013 at 13:2 Comment(0)
N
1

Just Add the apikey to debug>res>values>google_maps_api.xml

add in release>res>values>google_maps_api.xml files.

Nitrogen answered 16/9, 2017 at 10:49 Comment(0)
P
0

Just generate SHA1 using

keytool -list -v -keystore mystore.keystore

go and add the package name and SHA1 fingerprint to the already generated

Playoff answered 22/9, 2015 at 18:16 Comment(0)
S
0

I used Android studio to generate the release keystore. After tried many ways for two days I finally got this to work. The problem is that when generating signed APK in Android Studio either by choosing the existing keystore or creating a new one, the default format for the keystore file is ".jks". That is the problem. After I changed that to ".keystore" and generated the release apk, and then copied the SHA1 into google console. The map can finally be showing.

enter image description here enter image description here

Simulate answered 4/1, 2016 at 8:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.