title: New project created in Android Studio! not running
body: <p>I already using Eclipse and I want to migrate to Android Studio.
  I installed Android Studio and I just created new project but its not running.. </p>
  
  <p><strong>Log cat:</strong></p>
  
  <pre><code>08-15 04:49:48.210 1357-1357/? E/AndroidRuntime: FATAL EXCEPTION: main
      java.lang.RuntimeException: Unable to start activity ComponentInfo{vakili.ramin.apps.myapplication/vakili.ramin.apps.myapplication.FullscreenActivity}: android.view.InflateException: Binary XML file line #36: Error inflating class android.support.v7.widget.Toolbar
          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 #36: Error inflating class android.support.v7.widget.Toolbar
          at android.view.LayoutInflater.createView(LayoutInflater.java:613)
          at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
          at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
          at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
          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 android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:299)
          at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:246)
          at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:106)
          at vakili.ramin.apps.myapplication.FullscreenActivity.onCreate(FullscreenActivity.java:90)
          at android.app.Activity.performCreate(Activity.java:5104)
          at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
          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)
  </code></pre>
  
  <p><strong>this is my SDK</strong>:</p>
  
  <p><a href="https://i.stack.imgur.com/rpjSR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rpjSR.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/RAo2c.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RAo2c.jpg" alt="enter image description here"></a></p>
  
  <p>I also tried to re syncing project - clean and rebuild - Invalidate caches / Restart-</p>
  
  <p><strong>The Build.Gradle file</strong>:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
  compileSdkVersion 22
  buildToolsVersion "19.1.0"
  
  defaultConfig {
      applicationId "vakili.ramin.apps.test3"
      minSdkVersion 15
      targetSdkVersion 22
      versionCode 1
      versionName "1.0"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-   rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
  
      compile 'com.android.support:appcompat-v7:22.2.1'
  }
  </code></pre>
  
  <p>It seems every things is ok.but....  .
  Android studio is so weird!</p>
  
  <p>Edit : main.xml</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"
      android:background="@drawable/background_03" &gt;
  
  
      &lt;ImageView
          android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:id="@+id/imageView"
         android:layout_gravity="center_horizontal"
         android:background="@drawable/abc_btn_check_to_on_mtrl_015" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I just added an imageView. and a drawable as it's background!</p>
  
  <p>Edit 2 : xml for full screen activity</p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="#0099cc"
  tools:context="vakili.ramin.apps.myapplication.FullscreenActivity"&gt;
  
  &lt;!-- The primary full-screen view. This can be replaced with whatever view
       is needed to present your content, e.g. VideoView, SurfaceView,
       TextureView, etc. --&gt;
  &lt;TextView
      android:id="@+id/fullscreen_content"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:gravity="center"
      android:keepScreenOn="true"
      android:text="@string/dummy_content"
      android:textColor="#33b5e5"
      android:textSize="50sp"
      android:textStyle="bold" /&gt;
  
  &lt;!-- This FrameLayout insets its children based on system windows using
       android:fitsSystemWindows. --&gt;
  &lt;FrameLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"&gt;
  
      &lt;LinearLayout
          android:id="@+id/fullscreen_content_controls"
          style="?metaButtonBarStyle"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom|center_horizontal"
          android:background="@color/black_overlay"
          android:orientation="horizontal"
          tools:ignore="UselessParent"&gt;
  
          &lt;Button
              android:id="@+id/dummy_button"
              style="?metaButtonBarButtonStyle"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:text="@string/dummy_button" /&gt;
  
      &lt;/LinearLayout&gt;
  &lt;/FrameLayout&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>