java.lang.RuntimeException: Unable to start activity ComponentInfo{ua.provectus.mobile_project.proveng/ua.provectus.mobile_project.proveng.activities.MainActivity}: android.view.InflateException: Binary XML file line #21: Error inflating class fragment

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Udacity Android Dev Sunshine crash
    via Stack Overflow by Suprad Parashar
    ,
  • RecyclerView ClassNotFound
    via Stack Overflow by Rene Xu
    ,
  • BlueStacks App Player - 4PDA
    via by Unknown author,
  • DraggablePanel error
    via GitHub by achinverma
    ,
    • java.lang.RuntimeException: Unable to start activity ComponentInfo{ua.provectus.mobile_project.proveng/ua.provectus.mobile_project.proveng.activities.MainActivity}: android.view.InflateException: Binary XML file line #21: Error inflating class fragment at android.app.ActivityThread.performLaunchActivity(ActivityThread.java) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java) at android.app.ActivityThread.access$800(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java) at android.os.Handler.dispatchMessage(Handler.java) at android.os.Looper.loop(Looper.java) at android.app.ActivityThread.main(ActivityThread.java) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #21: Error inflating class fragment at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java) at android.view.LayoutInflater.rInflate(LayoutInflater.java) at android.view.LayoutInflater.inflate(LayoutInflater.java) at android.view.LayoutInflater.inflate(LayoutInflater.java) at android.view.LayoutInflater.inflate(LayoutInflater.java) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290) at android.app.Activity.setContentView(Activity.java) at ua.provectus.mobile_project.proveng.activities.MainActivity.onCreate(MainActivity.java:21) at android.app.Activity.performCreate(Activity.java) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java) ... 12 more Caused by: android.app.Fragment$InstantiationException: Unable to instantiate fragment ua.provectus.mobile_project.proveng.fragments.TestListFragment: make sure class name exists, is public, and has an empty constructor that is public at android.app.Fragment.instantiate(Fragment.java) at android.app.Fragment.instantiate(Fragment.java) at android.app.Activity.onCreateView(Activity.java) at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:34) at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:79) ... 22 more Caused by: java.lang.ClassNotFoundException: Didn't find class "ua.provectus.mobile_project.proveng.fragments.TestListFragment" on path: DexPathList[[zip file "/data/app/ua.provectus.mobile_project.proveng-2.apk"],nativeLibraryDirectories=[/data/app-lib/ua.provectus.mobile_project.proveng-2, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:497) at java.lang.ClassLoader.loadClass(ClassLoader.java:457) at android.app.Fragment.instantiate(Fragment.java) at android.app.Fragment.instantiate(Fragment.java) at android.app.Activity.onCreateView(Activity.java) at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:34) at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:79) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java) at android.view.LayoutInflater.rInflate(LayoutInflater.java) at android.view.LayoutInflater.inflate(LayoutInflater.java) at android.view.LayoutInflater.inflate(LayoutInflater.java) at android.view.LayoutInflater.inflate(LayoutInflater.java) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290) at android.app.Activity.setContentView(Activity.java) at ua.provectus.mobile_project.proveng.activities.MainActivity.onCreate(MainActivity.java:21) at android.app.Activity.performCreate(Activity.java) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java) at android.app.ActivityThread.access$800(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java) at android.os.Handler.dispatchMessage(Handler.java) at android.os.Looper.loop(Looper.java) at android.app.ActivityThread.main(ActivityThread.java) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515)

    Users with the same issue

    Indri Yunita
    Indri Yunita4 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    mukky
    mukky2 times, last one,
    155 more bugmates