Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Map Android API v2: Authorization Failure

I am trying to get my Google Maps to display on my app, but it is not working and this error appears:

01-25 11:38:54.763: E/Google Maps Android API(30514): Authorization failure.

I am currently using the SHA1 certificate fingerprint from the release certificate that was used to publish my app on the appstore.

Edit: I have also switched on the Google Map Android API v2 on the API Console.

I've read from the comments from here that "Signature Algorithm MUST be SHA1withRSA and NOT SHA256withRSA". However, I created the release certificate from Eclipse and it is SHA256withRSA, and I didn't do any settings to it. I can't seem to change it either.

Can someone enlighten me if the signature algorithm is causing the problem? If so, how should I be changing the signature algorithm on eclipse?

like image 436
lyk Avatar asked May 05 '26 15:05

lyk


1 Answers

Figured out my problem.

I've been generating keys from my release certificate, which WILL NOT WORK during debugging when I run the app on my phone. I have to use the debugging keystore certificate fingerprint instead.

Please remember to keep 2 keys:

  1. Debug API key from your debugging keystore when you run it on your phone.

  2. Release cert API key to be used when you want to sign the app just before deployment to Google Play Store.

like image 156
lyk Avatar answered May 08 '26 06:05

lyk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!