android.Blick.InflateException: Binary XML file line #2: Error inflating class-fragment
ich alles tun, die Forschung jeden, aber es funktioniert immer noch nicht.
ich lese viele Seite aus hier aber nicht 🙁
Fehlerprotokolle:
11-18 10:25:46.743: D/AndroidRuntime(24336): Shutting down VM
11-18 10:25:46.743: W/dalvikvm(24336): threadid=1: thread exiting with uncaught exception (group=0x4001d578)
11-18 10:25:46.873: E/AndroidRuntime(24336): FATAL EXCEPTION: main
11-18 10:25:46.873: E/AndroidRuntime(24336): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.gmap/com.example.gmap.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class fragment
11-18 10:25:46.873: E/AndroidRuntime(24336): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1659)
11-18 10:25:46.873: E/AndroidRuntime(24336): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)
11-18 10:25:46.873: E/AndroidRuntime(24336): at android.app.ActivityThread.access$1500(ActivityThread.java:121)
11-18 10:25:46.873: E/AndroidRuntime(24336): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)
11-18 10:25:46.873: E/AndroidRuntime(24336): at android.os.Handler.dispatchMessage(Handler.java:99)
11-18 10:25:46.873: E/AndroidRuntime(24336): at android.os.Looper.loop(Looper.java:138)
11-18 10:25:46.873: E/AndroidRuntime(24336): at android.app.ActivityThread.main(ActivityThread.java:3701)
11-18 10:25:46.873: E/AndroidRuntime(24336): at java.lang.reflect.Method.invokeNative(Native Method)
11-18 10:25:46.873: E/AndroidRuntime(24336): at java.lang.reflect.Method.invoke(Method.java:507)
Haupttätigkeit:
package com.example.gmap;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
//Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}
Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.gmap"
android:versionCode="1"
android:versionName="1.0" >
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<!-- The following two permissions are not required to use
Google Maps Android API v2, but are recommended. -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="17" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.gmap.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyDq-Xosuk1Wzyw9WJ4bGjjE6XIhD90QNuA"/>
</application>
</manifest>
und Haupt-xml -:
<?xml version="1.0" encoding="utf-8"?>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.SupportMapFragment"/>
Bitte jeder Körper zu helfen meeee.
InformationsquelleAutor hiddenhazard | 2013-11-18
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ändern Sie diese
zu
Müssen Sie die unten
In
application
tag seiner außerhalb der tag -der meta-tag außen tag. check developers.google.com/maps/documentation/android/.... markiere die Antwort als akzeptiert, wenn Sie hilft, indem Sie auf das Häkchen, um die Antwort
Ich habe das gleiche problem mit dem gleichen catlog aber das hat nicht geholfen.
warum nicht? was ist das problem. Wenn du es richtig machst, sehe ich keinen Grund warum es nicht funktionieren wird. dies nicht hilft, ist vage Kommentar. nicht helfen. Ich arbeitete für die Frage, poster.
Mann du bist der beste, ich danke Ihnen sehr!!!!
InformationsquelleAutor Raghunandan
Bekam ich diese Fehlermeldung, wenn Sie eine der Berechtigungen fehlt in der AndroidManifest.xml Datei.
das hinzufügen der folgenden Erlaubnis das problem gelöst:
ok, ich habe die Erlaubnis, das den Fehler verursacht.
InformationsquelleAutor bat-el.g
Entfernen Demo-Map-Anwendung von Ihrem Telefon. Dann wird die Arbeit gut. Das funktioniert für mich.
InformationsquelleAutor Michael Katkov
Öffnen Sie die gradle.Eigenschaften und fügen Sie die folgende Zeile:
(Referenz)
InformationsquelleAutor Rofaeil Ashaiaa