Okay, so here is my problem:
I made a little app for myself that uses the Maps API from Google. I followed the instructions on how to put the API key in the app and all that. I make my app, run it on my phone (via USB debugging if that's important) and it works just fine. Now, out of fun, I put the app on Google Play Store (for some of my friends and family to use it idk), and all of a sudden, the app doesn't work. What happened was, the map wouldn't load (as if i haven't put in the API key). Then I uninstalled the app, tried running it with USB debugging again, and the same thing happened. So I put in the new API key, and it works just fine. Uploaded the version 2 in the Play Store, same problem and the same situation. How do I fix this?
I will provide any additional information that you need.
Asked
Active
Viewed 59 times
0

Nick
- 45
- 8
-
1maybe map API key issue. you may used debug key instead of release key – Shalu T D Jul 03 '20 at 10:04
-
There is a release key? – Nick Jul 03 '20 at 11:01
-
it may be helpful https://stackoverflow.com/questions/33701865/release-apk-file-not-showing-google-maps – Shalu T D Jul 03 '20 at 11:18
-
I've seen this, but some things are just not very straightforward (like "extract SHA-1 from keystore". How do i do that? Also, what is the terminal, because it's not cmd) – Nick Jul 03 '20 at 12:27
1 Answers
0
Check if you've entered your API key within the google_maps_api.xml
file in the release directory (/app/src/release/res/values)
just like in your debug directory (/app/src/main/debug/values)
.
Then, if you have API key restrictions make sure that you are using right certificates for the debug and release builds. You can get your debug and release certificates by following the steps given on Google Maps SDK for Android documentation
I hope this helps! Goodluck on your project

jabamataro
- 1,154
- 7
- 13