Google Maps V2 Not Loading. Error Android.view.InflateException: Binary XML File Line.. Error Inflating Class Fragment
This is my MainActivity. minimum sdk version is 11 in my app. I used the API key in the android manifest file. When I did some minor modifications, it is showing me blank white spa
Solution 1:
mention this meta data tag
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
remove open gls tan andand let me know the result
Solution 2:
try this one
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
Solution 3:
You can use
mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.your_id))
.getMap();
From xml
<fragment
android:id="@+id/your_id"
android:name="com.google.android.gms.maps.SupportMapFragment"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
Add your key here
android:value="(MY API KEY)"
Post a Comment for "Google Maps V2 Not Loading. Error Android.view.InflateException: Binary XML File Line.. Error Inflating Class Fragment"