Q:

Unable to start activity ComponentInfo android.view.InflateException: Binary XML file line #27: Error inflating class fragment

When I run YouTube WatchMe android project, I get below exception:
02-03 14:06:36.865: E/AndroidRuntime(14244): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.apps.watchme/com.google.android.apps.watchme.MainActivity}: android.view.InflateException: Binary XML file line #27: Error inflating class fragment
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2245)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2299)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.app.ActivityThread.access$700(ActivityThread.java:150)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1280)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.os.Handler.dispatchMessage(Handler.java:99)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.os.Looper.loop(Looper.java:137)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.app.ActivityThread.main(ActivityThread.java:5283)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at java.lang.reflect.Method.invokeNative(Native Method)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at java.lang.reflect.Method.invoke(Method.java:511)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at dalvik.system.NativeStart.main(Native Method)
02-03 14:06:36.865: E/AndroidRuntime(14244): Caused by: android.view.InflateException: Binary XML file line #27: Error inflating class fragment
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:710)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.view.LayoutInflater.rInflate(LayoutInflater.java:752)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:364)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.app.Activity.setContentView(Activity.java:1930)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at com.google.android.apps.watchme.MainActivity.onCreate(MainActivity.java:82)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.app.Activity.performCreate(Activity.java:5283)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1097)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2209)
02-03 14:06:36.865: E/AndroidRuntime(14244):    ... 11 more
02-03 14:06:36.865: E/AndroidRuntime(14244): Caused by: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.google.android.apps.watchme.EventsListFragment: make sure class name exists, is public, and has an empty constructor that is public
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.app.Fragment.instantiate(Fragment.java:596)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.app.Fragment.instantiate(Fragment.java:560)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.app.Activity.onCreateView(Activity.java:4864)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:686)
02-03 14:06:36.865: E/AndroidRuntime(14244):    ... 21 more
02-03 14:06:36.865: E/AndroidRuntime(14244): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.apps.watchme.EventsListFragment" on path: /data/app/com.google.android.apps.watchme-1.apk
02-03 14:06:36.865: E/AndroidRuntime(14244):    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
02-03 14:06:36.865: E/AndroidRuntime(14244):    at android.app.Fragment.instantiate(Fragment.java:582)
02-03 14:06:36.865: E/AndroidRuntime(14244):    ... 24 more

Code:
public class MainActivity extends Activity implements
    EventsListFragment.Callbacks {

private EventsListFragment mEventsListFragment;

@Override
protected void onCreate(Bundle savedInstanceState) {
    getWindow().requestFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    mEventsListFragment = (EventsListFragment) getFragmentManager()
            .findFragmentById(R.id.list_fragment);

   }
}

I checked everything my package name, xmls but I don't why I am getting this one.

A:

Adding android-support-v4.jar solved my problem. Also, changed priority to top & checked it in project properties section.

