Actions with a Blank Card After Uploading to the Play Store

As mentioned in the title, Maps activity is shown blank (with the Google logo at the bottom) after I downloaded the app. I know this question has been asked many times, but none of the solutions can solve my problem.

This is what I have done so far:

  • The generated Google Maps Release API key (signed SHA-1) after the official guide here and placed it under the release / res / values ​​/ google_maps_api.xml
  • Put the hardcode release API key in AndroidManifest.xml
  • Clean and rebuild project

This is the result:

  • Maps activity just worked fine if the release.apk application was manually installed on the device before downloading to the Play Store.
  • Maps activity is displayed empty if app-release.apk after downloading the release-app.apk application to the Play Store.

Decision:

This answer solved the problem that I am facing. The reason the Maps activity is shown to be empty is because Google Play is re-signing the application using the original application signing key that I provided. So just copy Google SHA-1 and paste it into the console where the Google Map API key is generated.

+2
source share
2 answers

If GMap activity is added in any project, then there are two google_maps_api.xml files.
One for Debug and One for release.

enter image description here

You probably entered the key in Debug just as when we add Gmap activity, only google_maps_api.xml is opened. Therefore, put your key in Release. How? ... see

  • Click the TODO button on the bottom panel of Android Studio. enter image description here
  • Click the TODO Based Area tab. enter image description here
  • Now there are two google_maps_api.XML files, each open and copy your XML key without the key (YOUR_KEY_HERE). enter image description here It also happened to me.
+1
source

You missed adding permission, try checking by enabling permission.

<uses-permission android:name="android.permission.INTERNET" /> 
0
source

Source: https://habr.com/ru/post/1270653/


All Articles