Android Google Maps Not Working After APK Release

后端 未结 2 328
梦如初夏
梦如初夏 2021-01-18 06:48

I have Android app which include Google Maps It was working fine before releasing the app, but after releasing the maps are not shown . Although I\'ve added SHA-1 certificat

2条回答
  •  离开以前
    2021-01-18 07:40

    I recently had the same problem. Please make sure you have set your release api key on your app resources.

    In your app you might have:

    src/debug/res/values/google_maps_api.xml

    where you set your debug key and also:

    src/release/res/values/google_maps_api.xml

    where you must set your release key. If you have created only one API Key with both SHA-1, then you must introduce the same as in debug.

    One more thing, in the Google Developers Console besides the debug SHA-1 and the Google Play Console SHA-1 I also add the release SHA-1 of the keystore I've use to sign my app.

提交回复
热议问题