私は現在、googlemapを含むアプリケーションを実行しています。そのxmlファイルのコードを以下に示しますが、グラフィックレイアウトではエラーが表示されます
「スタイルがありません。このレイアウトに正しいテーマが選択されていますか?レイアウトの上にあるテーマコンボボックスを使用して別のレイアウトを選択するか、テーマスタイルの参照を修正してください。
現在のテーマでスタイル「mapViewStyle」が見つかりませんでした」
googlemapを実行すると、logcatにエラーが表示されます。
java.lang.RuntimeException:アクティビティを開始できませんComponentInfo {com.iqmobi / com.iqmobi.Map}:android.view.InflateException:バイナリXMLファイル行#3:クラスcom.google.android.maps.MapViewの拡張中にエラーが発生しました
xmlファイルとマニフェストファイルを以下に示します
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.google.android.maps.MapView
android:id="@+id/myMapView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="0mRN-6bSm63hZJtPZSmcjoZAzdCztLnZv-O4SZw"
>
</com.google.android.maps.MapView>
</LinearLayout>
マニフェスト.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.iqmobi"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="9"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:icon="@drawable/iconffff"
android:label="@string/app_name" >
<uses-library android:name="com.google.android.maps" />
<activity
android:label="@string/app_name"
android:name="com.iqmobi.Map"
android:screenOrientation="portrait"
>
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>