Skip to content Skip to sidebar Skip to footer

Android Android.view.inflateexception Binary Xml File Line #16: Error Inflating Class Fragment

Here is MainActivity Class import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnect

Solution 1:

The problem is here:

<meta-data
   android:name="com.google.android.maps.v2.API_KEY"
    android:value="AIzaSyC6TVk6gtR_i_.......**************"/> 

The meta-data tag expects here an integer, so you'll have to include here the version of the com.google.android.maps lib you're using. You'll find this probably in the lib you're including in your project, then just define:

<meta-data
   android:name="com.google.android.maps.v2.API_KEY"
   android:value="@integer/your_google_maps_version" />

Solution 2:

<meta-data
   android:name="com.google.android.maps.v2.API_KEY"
    android:value="AIzaSyC6TVk6gtR_i_.......**************"/> 

In manifest.xml just add this after application> tag and before your first activity

Post a Comment for "Android Android.view.inflateexception Binary Xml File Line #16: Error Inflating Class Fragment"