Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

problems with android maps apiv2 after signing apk

I'm having a serious problem

When i build the apk via Eclipse everithing fine and the map is working very well

But when i sign my apk with Eclipse and move the signed apk to my phone the map activity not working, its not collapse it just show gray screen

I don't know what im doing wrong

I made all by using guides and i think everithing is fine

Does it happens to somebody that can help me solve this problem?

I pass the dead line that i should upload my app and i'm really nervous

Please help me.

Thanks for all answers

like image 896
Noni Geron Avatar asked Aug 20 '13 22:08

Noni Geron


People also ask

Is Google Maps pre installed on Android?

Google Maps Go is pre-installed on Android Oreo (Go edition) devices. It's also available on the Play Store.

Why Wont My Maps work on my Android?

You may need to update your Google Maps app, connect to a stronger Wi-Fi signal, recalibrate the app, or check your location services. You can also reinstall the Google Maps app if it isn't working, or simply restart your iPhone or Android phone.

How do I fix Google Maps on my Android?

Clear the app's cache & data On your Android phone or tablet, open the Settings app . Tap Apps & notifications. Follow the steps on your device to find the Maps app. After you select the app, storage & cache options should be available.


1 Answers

The maps api key is based on the keystore sha1 hash and the package name. When you sign your apk, the sha1 hash changes (because you are signing with a different keystore).

Just add the sha1 hash of the new keystore, and the package name to a new line in the Key for Android apps (with certificates) section, under the API Access section in the Google Api Console. It's exlained here as well: https://developers.google.com/maps/documentation/android/start.

like image 174
athor Avatar answered Sep 30 '22 23:09

athor