Android: Google Map v2 not showing map for release apk

后端 未结 16 1635
感情败类
感情败类 2020-12-08 16:04

My google map app works fine on device with debug google map API KEY but when I create signed apk for my app with release google map API KEY, it does not display map. To gen

16条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 16:12

    I had a similar issue and the problem was that I generated the apk from Android Studio without first selecting the right flavour. This means my manifest was still using the Google Maps API key that I created for the debug flavour.

    Please make sure you select the release flavour in your Android Studio. See screenshot below:

提交回复
热议问题