Googlemapsv2 to work in production version

Asked

Viewed 250 times

2

My app works with Google Maps perfectly in the debug version, but when I publish it in the Play Store it stops working.

What is the process for generating the Googlemapsv2 hash for the release version? How to test . apk before upload to make sure Googlemapsv2 works?

2 answers

4


Using the Eclipse IDE, you can generate the hash the moment you export your project to an APK by accessing File > Export, selecting Export Android Application and on the screen following your project, you will have something like this:

inserir a descrição da imagem aqui

After generated, on the last screen you will see a "Certificate fingerprints", which are in MD5 and SHA1.

With this SHA1, just you access your Google Developers Console, in your project and add this fingerprint on credential "Key for Android Applications" existing, which you use for debug mode. Remembering that you do not need to create another credential, just add a new line with this SHA1 generated for production.

For you to test this APK, just install in your device he already owns the new Keystore production, the same that you will use in Play.

0

I also had the same problem, discovered that the solution to this problem is to use a published KEY for when someone downloads the app to be able to use Gmaps. For this just search on google console Developers that has la a tutorial to put the service open.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.