title: Error inflating class android.support.design.widget.CoordinatorLayout and ClassNotFoundException: android.support.design.R$styleable
body: <p>I am developing an app which have Tab with swipe functionality. I am using Eclipse to develop. I have imported the <code>support design library</code> as Library through Property. During run, i am keep getting this error "<code>Error inflating class android.support.design.widget.CoordinatorLayout</code>".</p>
  
  <ol>
  <li>First i added <code>android support design.jar</code> and tried, which is not working</li>
  <li>I added the <code>class.jar</code> file of <code>support design library</code> through J<code>ava build path</code> which is not worked</li>
  <li>Finally i imported the <code>support design library</code> as Library using <code>Properties-&gt;Android-&gt;Add Library</code> this also not working</li>
  <li>I am using the Parent theme as "<code>Theme.AppCompat.Light.DarkActionBar</code>"</li>
  </ol>
  
  <p>"<code>&lt;style name="MyMaterialTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar"&gt;</code>"</p>
  
  <ol start="5">
  <li><p>I am extending the <code>AppCompatActivity</code>, see my MainActivity.Java</p>
  
  <p>package com.example.scrollingtab.activity;</p>
  
  <pre><code>import android.support.v7.app.AppCompatActivity;
  import android.support.v7.widget.Toolbar;
  import android.widget.Button;
  import com.example.scrollingtab.R;
  
  public class MainActivity extends AppCompatActivity implements View.OnClickListener {
  
      private Toolbar toolbar;
      private Button btnSimpleTabs, btnScrollableTabs, btnIconTextTabs, btnIconTabs, btnCustomIconTextTabs;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          toolbar = (Toolbar) findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
  
          btnSimpleTabs = (Button) findViewById(R.id.btnSimpleTabs);
  
          btnSimpleTabs.setOnClickListener(this);
  
      }
  </code></pre></li>
  </ol>
  
  <p>Below is the full stack trace:</p>
  
  <pre><code>FATAL EXCEPTION: main
  Process: com.example.scrollingtab, PID: 1348
  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.scrollingtab/com.example.scrollingtab.activity.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class android.support.design.widget.CoordinatorLayout
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
  at android.app.ActivityThread.access$800(ActivityThread.java:151)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
  at android.os.Handler.dispatchMessage(Handler.java:102)
  at android.os.Looper.loop(Looper.java:135)
  at android.app.ActivityThread.main(ActivityThread.java:5257)
  at java.lang.reflect.Method.invoke(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:372)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
  Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class android.support.design.widget.CoordinatorLayout
  at android.view.LayoutInflater.createView(LayoutInflater.java:633)
  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
  at android.view.LayoutInflater.inflate(LayoutInflater.java:482)
  at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
  at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
  at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:257)
  at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)
  at com.example.scrollingtab.activity.MainActivity.onCreate(MainActivity.java:20)
  at android.app.Activity.performCreate(Activity.java:5990)
  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
  Caused by: java.lang.reflect.InvocationTargetException
  at java.lang.reflect.Constructor.newInstance(Native Method)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
  at android.view.LayoutInflater.createView(LayoutInflater.java:607)
  Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/design/R$styleable;
  at android.support.design.widget.CoordinatorLayout.&lt;init&gt;(CoordinatorLayout.java:171)
  at android.support.design.widget.CoordinatorLayout.&lt;init&gt;(CoordinatorLayout.java:165)
  Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.design.R$styleable" on path: DexPathList[[zip file "/data/app/com.example.scrollingtab-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
  Suppressed: java.lang.ClassNotFoundException: android.support.design.R$styleable
  at java.lang.Class.classForName(Native Method)
  at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
  at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
  Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
  </code></pre>
  
  <p>I have tried most of the things talked and provided by SO. Still i am not able to trace what is wrong in my program. </p>
  
  <p>Need help to solve this.</p>
  
  <p>Thanks</p>