สไตล์ที่ขาดหายไป ชุดรูปแบบที่ถูกต้องถูกเลือกสำหรับเค้าโครงนี้หรือไม่ ใช้กล่องคำสั่งผสมชุดรูปแบบเหนือเค้าโครงเพื่อเลือกเค้าโครงอื่นหรือแก้ไขการอ้างอิงลักษณะชุดรูปแบบ ไม่สามารถค้นหาสไตล์
mapViewStyleในชุดรูปแบบปัจจุบัน
ฉันพยายามแก้ไขปัญหาทุกอย่างที่มีเพื่อแก้ไขปัญหานี้ แต่ดูเหมือนว่าจะไม่มีอะไรทำงาน ฉันรวมไลบรารี่ไว้ในไฟล์ Manifest ฉันยังสร้างสไตล์คือ styles.xml ฉันได้เลือกเป้าหมายการสร้างของ Google Apis ด้วย
ใครช่วยกรุณาแก้ปัญหาให้ฉันได้ไหม?
นี่คือไฟล์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หายไปของคุณ?