こんにちは、アクティビティ グループを含むタブ ベースのアプリケーションがあります。1 つのアクティビティ グループにはサブ アクティビティがあり、マップを表示し、サーバーからの応答として取得している複数の場所をプロットする必要があります。Google マップ バージョン 1 はサポートされなくなったため、oogle マップ バージョン 2 を使用する必要がありますが、以下に示すこのxmlを使用するたびに、xml inflate Infalte that Fragmentsを取得します
java.lang.RuntimeException: アクティビティ ComponentInfo を開始できません {com.teks.googlemaps/com.teks.googlemaps.MainActivity}: android.view.InflateException: バイナリ XML ファイルの行 #13: クラス フラグメントの膨張エラー
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" />
<fragment
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.SupportMapFragment"
/>
</RelativeLayout>
さらに仕様を追加するために、Google Play サービスを追加しました。Android 2.2でAPIキーとターゲットデバイスを作成しました
助けてください