0

I got my Google Map API key and embedded it in my code. At this moment MAP was working. No issues at this point.

Then, I generated signed apk and released the app on playstore. On downloading the app - map was not working (not showing any visuals) in any device.

Then to get Map API for release version (as I came to know later),

I did this:

  1. Generated signed apk using same keystore.
  2. Discovered my SHA1 certificate for that keystore. (Using this tutorial)
  3. Got new API from google Map APIs using this new SHA1 certificate and my package name.
  4. Embedded this new API into res > values > google_maps_api.xml file. Also, I added new API key in manifest.

Now, when I run the app, Map fragment is not showing any visuals. It looks pretty much like this:

enter image description here

Community
  • 1
  • 1
prasang7
  • 553
  • 1
  • 8
  • 26

1 Answers1

0

try this,

keytool -list -v -keystore "Your Keystore Path" -alias "Your alias name" -storepass "your keystore password" -keypass "your keystore password"
Pradeep Gupta
  • 1,695
  • 1
  • 7
  • 23
  • I'm working on Android studio. It wont show these properties while building signed apk. – prasang7 Apr 11 '16 at 11:32
  • 1
    Go to the terminal right of Android Monitor in Android Studio, then paste command with required fields, it will give you the SHA1 key for release,put it in google developer console and create google map key and either put that key in gradle or resource file of map. – Ramesh Kumar Apr 11 '16 at 13:20