Google Maps Android V2 debug and release key

2019-06-06 15:50发布

问题:

I recently got the release key from Google Maps Android V2; So before exporting the signing APK from eclipse; I updated the manifest, changing the debug API key from GMaps to the Release API keys.

Hours later I needed to debug something, so I ran the app on debug but I didn't change the Manifest API key back to the debug one. As far as I am concerned, the app is signed with the debug key machine, but it contains the release key from GMaps API. As far as I know, it was supposed NOT TO WORK. The GMaps DID work. So now I'm confused. Could you explain please

回答1:

In the new API (Version 2) you can have the same key for multiple sha-1 fingerprints.

Can it be that you have configured in your APIs Console, the API key with both your debug and release keystore fingerprint like so: