Monday, October 14, 2013

Google Maps v2 is not showing in the signed APK - Solution

You maybe tried the Google Map v2 sample from GitHub with an debug key and everything looks fine. But after exporting the App as a signed APK, the map is not showing anymore.
The reason is, that Google need different certificates, one for the app that uses the debug key and one for the app that uses the release key.
Make a new SHA-1 certificate with keytool and your release key and add a new line to your API Key in the API Console.

And if you like to use the Google Map v2 Android API for other Apps with different package names, this is possible too. Add a new line for every package name together with the SHA1-certificate.

The Ebooks can be purchased right here on the blog (PDF)

on Amazon (mobi)

and Kobo (epub)

Getting Started with Android Studio 3rd Edition (English Edition) 

  Kobo (epub) - update April 14, 2014

Amazon (mobi) - update April 14, 2014

Blog (PDF) - update April 14, 2014

No comments:

Post a Comment

Post a Comment