Inflateexception Binary Xml File At Line #7: Error Inflating Class Fragment
I've been doing some research of this problem but no solution has yet to work for me. I've added empty constructors in the fragment classes and tried with different imports of frag
Solution 1:
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.android.rssfeed.MyListFragment" on path: /data/app/com.example.com.example.android.rssfeed-1.apk
Change this
class="com.example.android.rssfeed.MyListFragment"
to
class="com.example.com.example.android.rssfeed.MyListFragment"
cause the packagename is package com.example.com.example.android.rssfeed
.
Similarly
class="com.example.com.example.android.rssfeed.DetailFragment"
if the package name is the same
Change this
<button
android:id="@+id/btn1"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="Press to Update">
To
<Button
android:id="@+id/btn1"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="Press to Update" />
Solution 2:
Change
"class= com.example.android.rssfeed.MyListFragment"
to
"com.example.com.example.android.rssfeed.MyListFragment"
And your problem will be solved out
Solution 3:
Add this line in fragment class="com.google.android.gms.maps.SupportMapFragment"
Post a Comment for "Inflateexception Binary Xml File At Line #7: Error Inflating Class Fragment"