0
Guys I have an application running Google Maps. I generated the access key (copied and pasted in xml ) right on the Console Developer website. If I generate normal apk (no signature) it works normally. After the signed apk (to post on Google Play) it no longer loads the map, the google logo appears but the map is not loaded.
I read that you need to use the same key I generated on the site on the signed apk. I just didn’t understand how to generate the key, since the key I took on the site was (copied and pasted). I’m trying to sign right into the Android Studio IDE in the Build > Generate Signed APK menu
Can someone help me solve this?
Generated key as release?
– viana
@acklay yes managed with release
– Flávio
@acklay if I generate as debug, apk works. But if I go on Google Play it says that the SHA key is different and does not let go up to replace the existing apk in gplay
– Flávio
It has to generate sha1 as a release anyway. I’ve caught a lot of it, but today I know that when it happens this is exactly because of the wrong token. Try to check exactly if you are sending as a release. Make sure you do not have two google_maps_api.xml(debug) and google_maps_api.xml(release).
– viana
@acklay noticed this. In mine I only have google_maps_api.xml(debug). How do I get gogole_maps_api.xml(release)? It’s the same file, just rename?
– Flávio
It is not the same file. You have to enter the folder of your project. in app/src and you will see the modes. release/debug/test etc. Ai goes into release and puts your release key. Just this and everything will work perfectly.
– viana
Check out my question: https://answall.com/questions/216685/howto toggle view%C3%A7%C3%A3o-de-diret%C3%B3rios-de-debug-para-release-ou-vice-versa
– viana
@acklay Thank you so much for your help. I gave it right, I followed what you sent me on the link, and then appeared the xml release from google. I put my key Api. I generated the file as a release and it worked. I tried it on google play and already recognized it as an update of the old apk. Thanks =D
– Flávio
https://answall.com/a/216700/130213 "This answer has solved my problem"
– Anderson.PP
And you used the google play key instead of the Android Studio key to generate SHA1? In my case debug works, but when I copy apk to the device and install, it doesn’t work
– Fabio Lira