スタイルがありません。このレイアウトに適切なテーマが選択されていますか? レイアウトの上にある [テーマ] コンボ ボックスを使用して、別のレイアウトを選択するか、テーマ スタイルの参照を修正します。
mapViewStyle
現在のテーマでスタイルが見つかりませんでした。
この問題を解決するために利用可能なすべてのソリューションを試しましたが、何もうまくいかないようです。マニフェスト ファイルにライブラリを含めました。styles.xml も作成しました。Google Api ビルド ターゲットも選択しました。
誰かが私に解決策を教えてもらえますか?
ここに私のxmlファイルがあります:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
style="@style/AppTheme"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<com.google.android.maps.MapView
android:id="@+id/themap"
style="@style/mapViewStyle"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="here i have my key"
android:clickable="true"
android:enabled="true" />
</RelativeLayout>
ここに私のマニフェストスニペットがあります:
<uses-library android:name="com.google.android.maps" />
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Second" />
<activity android:name=".Third" android:theme="@android:style/Theme.Black"/>
</application>
ここに私のstyle.xmlファイルがあります
<resources>
<style name="mapViewStyle" parent="@android:style/Theme.Black">
</style>
</resources>