java.lang.RuntimeException

Unable to start activity ComponentInfo{com.myapp/com.myapp.app.AdvertListActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment


Solutions on the web53963

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.myapp/com.myapp.app.AdvertListActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment

Solution icon of stackoverflow
via Stack Overflow by Darko Petkovski
, 1 year ago
Unable to start activity ComponentInfo{com.myapp/com.myapp.Main}: android.view.InflateException: Binary XML file line #2: Error inflating class fragment

Solution icon of stackoverflow
Unable to start activity ComponentInfo{****/****.view.activity.ListOverviewActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment

Solution icon of github
Unable to start activity ComponentInfo{com.kuxhausen.huemore/com.kuxhausen.huemore.MainActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment

Solution icon of stackoverflow
via Stack Overflow by Jason Crosby
, 1 year ago
Unable to start activity ComponentInfo{com.app.tipcalculator/com.app.tipcalculator.TipListActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.fxpal.unity.android/com.fxpal.unity.android.MainActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment

Solution icon of stackoverflow
via Stack Overflow by Tyler Pfaff
, 1 year ago
Unable to start activity ComponentInfo{com.example.fragtest/com.example.fragtest.MainActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.myexample.fragmentdemoexample/com.myexample.fragmentsupportexample.MainFragmentActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment

Solution icon of stackoverflow
via Stack Overflow by OmAr Hesham
, 10 months ago
Unable to start activity ComponentInfo{com.bachelor.bond/com.dxample.example.GPSonMap}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment

Solution icon of stackoverflow
via Stack Overflow by Tom
, 1 year ago
Unable to start activity ComponentInfo{com.example.mapstest/com.example.mapstest.MainActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment

Stack trace

  • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp/com.myapp.app.AdvertListActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230) at android.app.ActivityThread.access$600(ActivityThread.java:141) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5041) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class fragment at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) at android.view.LayoutInflater.inflate(LayoutInflater.java:489) at android.view.LayoutInflater.inflate(LayoutInflater.java:396) at android.view.LayoutInflater.inflate(LayoutInflater.java:352) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270) at android.app.Activity.setContentView(Activity.java:1881) at com.myapp.app.AdvertListActivity.onCreate(AdvertListActivity.java:19) at android.app.Activity.performCreate(Activity.java:5104) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144) ... 11 more Caused by: java.lang.NullPointerException at com.myapp.fragment.AdvertListFragment.onCreateView(AdvertListFragment.java:63) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:846) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1061) at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1160) at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:272) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676) ... 21 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.