Android NativeScript谷歌地图Api-谷歌地图为空

Android NativeScript谷歌地图Api-谷歌地图为空,android,google-maps,nativescript,Android,Google Maps,Nativescript,我正在用NativeScript v6和Angular 8编写一个应用程序 tns—版本6.1.2 我用这个插件来显示谷歌地图 将显示映射,并且不会抛出任何错误,但映射为空 以下是我的代码片段: 模板 <Page class="page"> <GridLayout rows="auto,*"> <Label row="0" class="h3" text="Maps"></Label> <MapView

我正在用NativeScript v6和Angular 8编写一个应用程序

tns—版本6.1.2

我用这个插件来显示谷歌地图

将显示映射,并且不会抛出任何错误,但映射为空

以下是我的代码片段:

模板

<Page class="page">
    <GridLayout rows="auto,*">
        <Label row="0" class="h3" text="Maps"></Label>
        <MapView
            row="1"
            #mapView
            i-padding="50,50,50,50"
            (mapReady)="onMapReady($event)"
            iosOverflowSafeArea="true">
        </MapView>
    </GridLayout>
</Page>
雄激素单

<meta-data
    android:name="com.google.android.geo.API_KEY"
    android:value="@string/nativescript_google_maps_api_key" />

我在不同的设置中使用了相同的键,它起了作用:


是的,我也遇到过同样的问题。请检查您的google开发者控制台,其中是否为iOS/Android启用了google地图API

也可以参考这个


这对我很有用,根据您的需求使用代码Angular 8或纯JS/TS

您确定没有对密钥设置任何限制吗?您是否在该帐户上启用了谷歌地图服务?
<meta-data
    android:name="com.google.android.geo.API_KEY"
    android:value="@string/nativescript_google_maps_api_key" />