Google Map Not Showing Map For Release Apk
I have the problem that has been discussed here but without any solution helps me. The Google map is 'gray' but just in release (when I build generate signed APK). I have tried to
Solution 1:
Are you using ProGuard? If so then you'll need to add following to your ProGuard rules file:
-keep class com.google.android.gms.maps.** { *; }-keep interface com.google.android.gms.maps.** { *; }
Solution 2:
When you generated your Google maps key, did you put SHA-1 of your debug, or of your release certificate? If you put debug SHA-1, add release also.
Also, proper way to do map implementation would be to have debug/res/values/google_maps_api.xml with key for debug and another release/res/values/google_maps_api.xml with key for production. There shouldn't be key in strings.xml. More about this you can read here.
Post a Comment for "Google Map Not Showing Map For Release Apk"