Maps Activity Blank after uploaded to Play Store [duplicate]

亡梦爱人 提交于 2019-12-04 15:39:47

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

Probably you've entered the key in Debug only as when we add Gmap activity, only google_maps_api.xml opens. So put your key in Release also. How?...see.

  1. Click on TODO on the Bottom bar of Android Studio.


  2. Click on scope Based tab of TODO.

  3. Now there are two google_maps_api.XML, open each and copy your key to XML with no key (YOUR_KEY_HERE).

    This also happened with me.

You have missed adding the permission, try checking by including the permission.

<uses-permission android:name="android.permission.INTERNET" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!