I\'m having major troubles getting Google Maps working in production within an Android app. This is what I am currently getting (the bottom is just ads).
error //Ensure that the "Google Maps Android API v2" is enabled. In this u can't find like Google Maps Android API v2 in Google Cloud Platform Console.in this, give the exact Package Name: and signature of your project which is showing in run window or debug window , I faced the same problem because of changing MapActivity package location I struggled to find this whole day so make sure whether u changed any packages inside project if so give package which is showing in error text emphasized text Ensure that the following Android Key exists: API Key: YOUR_KEY_HERE Android Application (;): ;com.mike.mapstest
When using Android Studio to generate the Google Maps Activity, it will ignore your gradle build configs and use the default debug.keystore
. The SHA1 in google_maps_api.xml
is based off of this default. When creating permission in the Google API console, make sure to use your production and debug SHA1 if you are using the non default.