Android - Fehler beim finden der Stil 'mapViewStyle' in aktuellen Thema

Ich habe ein kleines problem mit meinem Android Maps-Anwendung. So dass, wenn ich Hinzugefügt MapView zu meinem layout-xml-Datei zeigt er mir "Failed to find Stil 'mapViewStyle' in aktuellen Thema" Fehlermeldung.

Hier ist meine AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.acilSRV.client"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:minSdkVersion="10" />

    <application android:icon="@drawable/icon" android:label="@string/app_name">

    <uses-library android:name="com.google.android.maps"/>
        <activity android:name=".AcilActivity"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

</manifest>

Und main.xml wo wird diese Fehlermeldung angezeigt:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/hello"
    />

   <com.google.android.maps.MapView
    android:id="@+id/myMapView"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:enabled="true"
    android:clickable="true"
    android:apiKey="*******"
  />

</LinearLayout>

Hinweis: ich habe schon überprüft, meine Google-Maps-api-Schlüssel, und es gibt kein problem mit api-key.

Irgendwelche Vorschläge?

  • haben Sie eine build-Ziel, dass schließt GoogleApis?
  • ja, Google Apis - 10 (2.3.3 version)
  • möglich Spiegel dieser Frage: stackoverflow.com/questions/6975203/...
  • Ich habe bereits versucht, alle diese Lösungen haben den Fehler immer noch angezeigt wird...
  • versuchen Sie, bauen mit ant zu clearify wenn es ein Fehler in Eclipse
  • Btw, wenn ich Schreibe "keytool -list -keystore ~/.android/debug.keystore" in terminal bekomme ich "Enter keystore password:" - prompt, und wenn ich tippe Enter, zeigt er mir Warnung vor zeigt sich ein Fingerabdruck...Die Warnmeldung: "Die Integrität der gespeicherten Informationen in Ihrem keystore NICHT überprüft worden ist!Um zu überprüfen, Ihre Integrität,müssen Sie Ihr Schlüsselspeicher-Kennwort."

InformationsquelleAutor Zaur Guliyev | 2011-12-14
Schreibe einen Kommentar