Styles manquants. Le thème approprié a-t-il été choisi pour cette mise en page? Utilisez la zone de liste déroulante Thème au-dessus de la mise en page pour choisir une mise en page différente ou corriger les références de style de thème. Impossible de trouver le style
mapViewStyledans le thème actuel.
J'ai essayé toutes les solutions disponibles pour résoudre ce problème mais rien ne semble fonctionner. J'ai inclus la bibliothèque dans le fichier manifeste. J'ai même créé le style styles.xml, j'ai également choisi la cible de construction Google Apis.
Quelqu'un peut-il me donner une solution?
voici mon fichier 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>
Voici mon extrait de code manifeste :
<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>
voici mon fichier style.xml
<resources>
<style name="mapViewStyle" parent="@android:style/Theme.Black">
</style>
</resources>
minSDKVersionet targetSdkVersiondans le build.gradlefichier a fonctionné pour moi.






@style/AppThemevotre absence?