Google Maps White Screen
Solution 1:
Thank you for help.
I have changed the activity name from android:name=".Activitys.MapsActivity"
to android:name="com.project.me.appname.Activitys.MapsActivity"
this has solved the problem for me.
Solution 2:
I had the same issue aswell, and just wanted to say thank you for sharing your solition. I also wanted to add something:
1) You can edit the packagename in your Developer Console at google aswell, so you dont need to rename packages and dependencies in your app. You can aswell provide your root package name and do not have to limit a key to one activity
2) Debugging on my Phone via USB worked well, while the Simulator still doesn‘t render the map
3) You will need a different API Key for your release Version of your App, since the API Key is bound to SHA1 of your apk, which is different from debug to release mode. There are actually 2 seperate files/directories in your res folder.
Solution 3:
After suffering 2 days with this error , I found a really good solution .
Actually , I debug app by installing release signed apk on emulator and check Logcat which is showing :
E/Google Maps Android API﹕ Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.
E/Google Maps Android API﹕ In the Google Developer Console (https://console.developers.google.com)
Ensure that the "Google Maps Android API v2"is enabled.
Ensure that the following Android Key exists:
API Key: YOUR_KEY_HEREAndroid Application (<cert_fingerprint>;<package_name>):
<SHA1 Removed forthis> ;com.xaif.mapstest
This is because your app has different SHA-1 fingerprint for release version . So , generate a new SHA-1 fingerprint for released version and add it to Restriction section in Credentials with same package name. This takes 5-10 minutes to add . Now , Your app runs perfectly.
Post a Comment for "Google Maps White Screen"