PGMacDesign
PGMacDesign

Reputation: 6302

Android - Google Maps doesn't display within my application except in debugging mode

The issue I am having is one that is mirrored in many other threads with one minor difference. I am getting this screen whenever I install the apk file received via export a signed application: Blank Display

I have followed every one of the following stackoverflow references, but alas, nothing has helped: -Google Maps API V2 - always get authentication error -Google Maps Android API v2 Authorization failure -Google Map Android Api V2 Sample Code not working -Android - Google Map doesn't display

The issue is, that my map displays PERFECTLY when I am running it to the attached android phone I have plugged into my computer for debugging purposes, but when I export the apk file and install that (after uninstalling the prior of course), it does not work.

Is there any reason why my application would work while my debugged phone is connected and the application is 'run' while said phone is attached but not when I export the apk file, and install it that way?

Thanks in advance for the help!

Upvotes: 0

Views: 1273

Answers (2)

Emmanuel
Emmanuel

Reputation: 13223

I am assuming that you either forgot to change your API key to the release key on your manifest before generating the apk or that you have the wrong release SHA1 signature to begin with. Make sure that you are using the correct API key and/or that your SHA1 release signature is correct.

Upvotes: 2

Illegal Argument
Illegal Argument

Reputation: 10338

You need a separate api key for your release mode. Its the same as in debug mode but you need to export the apk file again.

Upvotes: 2

Related Questions