Google 地图未专门加载到 Android Lollipop 和 Marshmallow Google 地图 v2 中

Google Map not loading specifically in Android Lollipop and Marshmallow Google map v2

我正在尝试在 android 5、6 API 级别 21、22 和 23 上加载带有集群的 google 地图我遇到了一个问题 google 地图从不加载。在其他平台上它工作正常,即牛轧糖、奥利奥派。

我仔细检查了 google api 控制台并更改了 api 密钥,运行时权限没有问题事实上我也评论了这一行。 //应用插件:'com.google.gms.google-services' 和 class 路径。

除此之外没有打​​印任何日志 I/Google 地图 Android API:Google Play 服务客户端版本:12451000 I/Google 地图 Android API:Google Play 服务包版本:17194018

 override fun onMapReady(map: GoogleMap?) {
    googleMap = map

    try {
    //parsing dark map style to map view
        val success =
            map.setMapStyle(MapStyleOptions.loadRawResourceStyle(context, R.raw.map_style_dark))
        if (!success) {
    //parsing failed
            Log.e(TAG, "Style parsing failed.")
        }
    } catch (e: Resources.NotFoundException) {
    //if style not found
        Log.e(TAG, "Can't find style. Error: ", e)
    }
}
I was having same issue once I was working in an App. 
try to resume map in OnResume().

`override fun onResume() {
        super.onResume()
        map.let{
            it.onResume()
        }
    }`