Dictionary 为什么我的地图视图不';你不能在碎片中显示任何东西吗?

Dictionary 为什么我的地图视图不';你不能在碎片中显示任何东西吗?,dictionary,fragment,android-mapview,Dictionary,Fragment,Android Mapview,我正在尝试创建一个示例android应用程序,它使用MapView来显示地图,但它没有在片段中显示任何内容 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="ma

我正在尝试创建一个示例android应用程序,它使用MapView来显示地图,但它没有在片段中显示任何内容

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <com.google.android.gms.maps.MapView
        android:id="@+id/mapView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</RelativeLayout>