Fehlende Stile. Ist das richtige Thema für dieses Layout ausgewählt? Verwenden Sie das Kombinationsfeld Thema über dem Layout, um ein anderes Layout auszuwählen, oder korrigieren Sie die Themenstilreferenzen. Stil
mapViewStyleim aktuellen Thema konnte nicht gefunden werden.
Ich habe alle verfügbaren Lösungen ausprobiert, um dieses Problem zu lösen, aber nichts scheint zu funktionieren. Ich habe die Bibliothek in die Manifestdatei aufgenommen. Ich habe sogar style is styles.xml erstellt. Ich habe auch das Google Apis-Build-Ziel ausgewählt.
Kann mir bitte jemand eine Lösung geben?
Hier ist meine XML- Datei:
<?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>
Hier ist mein Manifest- Snippet:
<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>
Hier ist meine style.xml Datei
<resources>
<style name="mapViewStyle" parent="@android:style/Theme.Black">
</style>
</resources>
minSDKVersionund targetSdkVersionin der build.gradleDatei hat bei mir funktioniert.






@style/AppThemedu nicht vermisst wirst?