title: Android Toolbar not instantiate in Layout
body: <p>I am stuck with Android toolbar, I am trying to create a new layout containing toolbar. But it is giving me errors.
  <a href="https://i.stack.imgur.com/u00Il.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u00Il.png" alt="app_bar.xml"></a></p>
  
  <p>I have tried all the question on SO, but could not resolve the thing.
  I tried, Invalidating/Caching Restart , Changing AppTheme, Switching to lower version, but nothing worked out.</p>
  
  <p><strong>Is it something related to Support library because if I change</strong></p>
  
  <blockquote>
    <p>android.support.v7.widget.Toolbar</p>
  </blockquote>
  
  <p>to </p>
  
  <blockquote>
    <p>android.widget.Toolbar</p>
  </blockquote>
  
  <p>Toolbar works, but I need ViewPager as well as SlidingTabLayout and Cordinator Layout, AppBarLyout</p>
  
  <p>Gradle</p>
  
  <pre><code>android {
      compileSdkVersion 22
      buildToolsVersion "22.0.1"
  
      defaultConfig {
          applicationId "com.x.y.activities"
          minSdkVersion 15
          targetSdkVersion 21
      }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
          }
      }
  
  }
  </code></pre>
  
  <p>Style</p>
  
  <pre><code>&lt;style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
          &lt;!-- Customize your theme here. --&gt;
          &lt;!--   your app branding color for the app bar --&gt;
          &lt;item name="colorPrimary"&gt;#002663&lt;/item&gt;
          &lt;!--   darker variant for the status bar and contextual app bars --&gt;
          &lt;item name="colorPrimaryDark"&gt;#002663&lt;/item&gt;
          &lt;!--   theme UI controls like checkboxes and text fields --&gt;
          &lt;item name="colorAccent"&gt;#117CBD&lt;/item&gt;
  
  
      &lt;/style&gt;
  </code></pre>
  
  <p>Any Help is appreciated..
  Thanks</p>