लापता शैलियों। क्या इस लेआउट के लिए सही विषय चुना गया है? एक अलग लेआउट चुनने के लिए, या थीम शैली संदर्भों को ठीक करने के लिए लेआउट के ऊपर थीम कॉम्बो बॉक्स का उपयोग करें।
mapViewStyleवर्तमान विषय में शैली खोजने में विफल ।
मैंने इस समस्या को हल करने के लिए उपलब्ध हर समाधान की कोशिश की लेकिन कुछ भी काम नहीं करता है। मैंने मैनिफ़ेस्ट फ़ाइल में लाइब्रेरी शामिल की है। मैंने शैली भी बनाई है स्टाइल। xml, मैंने Google एपिस बिल्ड लक्ष्य भी चुना है।
क्या कोई मुझे समाधान दे सकता है?
यहाँ मेरी 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>
minSDKVersionऔर फ़ाइल targetSdkVersionमें build.gradleमेरे लिए काम किया।






@style/AppThemeआपके लापता नहीं है?