title: android.view.InflateException: Binary XML file line #22: Error inflating class ImageView
body: <p>I've an issue with this error when i test application on below API level 21 (Lollipop)
  i searched on google but couldn't find the working solution for me.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
  
      tools:context=".LoginActivity"&gt;
      &lt;ScrollView android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="#f0b501"&gt;
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:background="#f0b501"
              android:gravity="center"
              android:orientation="vertical"
              android:padding="@dimen/activity_horizontal_margin"&gt;
  
  
              &lt;ImageView
                  android:layout_width="@dimen/logo_w_h"
                  android:layout_height="@dimen/logo_w_h"
                  android:layout_gravity="center_horizontal"
                  android:layout_marginBottom="3dp"
                  android:src="@drawable/logo3"&gt;&lt;/ImageView&gt;
  
              &lt;android.support.design.widget.TextInputLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"&gt;
  
                  &lt;EditText
                      android:id="@+id/email"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginBottom="10dp"
                      android:hint="@string/hint_email"
                      android:inputType="textEmailAddress"
                      android:textColor="@android:color/white"
                      android:textColorHint="@android:color/white" /&gt;
              &lt;/android.support.design.widget.TextInputLayout&gt;
  
              &lt;android.support.design.widget.TextInputLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"&gt;
  
                  &lt;EditText
                      android:id="@+id/password"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginBottom="10dp"
                      android:hint="@string/hint_password"
                      android:inputType="textPassword"
                      android:textColor="@android:color/white"
                      android:textColorHint="@android:color/white" /&gt;
              &lt;/android.support.design.widget.TextInputLayout&gt;
  
              &lt;!-- Login Button --&gt;
  
              &lt;Button
                  android:id="@+id/btn_login"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="20dip"
                  android:background="#353535"
                  android:text="@string/btn_login"
                  android:textColor="#f0b501" /&gt;
  
              &lt;Button
                  android:id="@+id/btn_reset_password"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="20dip"
                  android:background="@null"
                  android:text="@string/btn_forgot_password"
                  android:textAllCaps="false"
                  android:textColor="#353535" /&gt;
  
              &lt;!-- Link to Login Screen --&gt;
  
              &lt;Button
                  android:id="@+id/btn_signup"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="20dip"
                  android:background="@null"
                  android:text="@string/btn_link_to_register"
                  android:textAllCaps="false"
                  android:textColor="#353535"
                  android:textSize="15dp" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  
      &lt;ProgressBar
          android:id="@+id/progressBar"
          android:layout_width="30dp"
          android:layout_height="30dp"
          android:layout_gravity="center|bottom"
          android:layout_marginBottom="20dp"
          android:visibility="gone" /&gt;
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>what i will do with image view..
  in dimens &amp; dimens (w820dp) folder image dimens is 130dp 
  minimumSdkVersion is 16
  if remove image then without image.. application doesn't crash</p>
  
  <p>LOGCAT (ERROR) :</p>
  
  <pre><code>01-17 20:20:03.700 2600-2600/customer.aclass.customer E/InstantRun: Could not find slices in APK; aborting. 01-17 20:20:03.730 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.os.UserManager', referenced from method com.google.android.gms.common.zze.zzbw 01-17 20:20:03.950 2600-2614/customer.aclass.customer E/dalvikvm: Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.internal.zzrt.zzg 01-17 20:20:03.990 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.monkeyPatchExistingResources 01-17 20:20:03.990 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.pruneResourceCache 01-17 20:20:04.020 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.030 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.030 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.030 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.media.session.MediaController', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.030 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.widget.Toolbar', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.040 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.app.ActivityManager$TaskDescription', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.040 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.040 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.040 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.040 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.040 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.transition.TransitionManager', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.050 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.060 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.060 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.080 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.app.assist.AssistContent', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.080 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.view.SearchEvent', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.090 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.090 2600-2600/customer.aclass.customer E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method customer.aclass.customer.LoginActivity.access$super 01-17 20:20:04.350 2600-2600/customer.aclass.customer E/AndroidRuntime: FATAL EXCEPTION: main
                                                                          java.lang.RuntimeException: Unable to start activity ComponentInfo{customer.aclass.customer/customer.aclass.customer.LoginActivity}: android.view.InflateException: Binary XML file line #22: Error inflating class ImageView
                                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2118)
                                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2143)
                                                                              at android.app.ActivityThread.access$700(ActivityThread.java:140)
                                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
                                                                              at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                              at android.os.Looper.loop(Looper.java:174)
                                                                              at android.app.ActivityThread.main(ActivityThread.java:4952)
                                                                              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:1027)
                                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
                                                                              at dalvik.system.NativeStart.main(Native Method)
                                                                           **Caused by: android.view.InflateException: Binary XML file line #22: Error inflating class ImageView**
                                                                              at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:710)
                                                                              at android.view.LayoutInflater.rInflate(LayoutInflater.java:752)
                                                                              at android.view.LayoutInflater.rInflate(LayoutInflater.java:760)
                                                                              at android.view.LayoutInflater.rInflate(LayoutInflater.java:760)
                                                                              at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
                                                                              at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
                                                                              at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
                                                                              at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
                                                                              at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
                                                                              at customer.aclass.customer.LoginActivity.onCreate(LoginActivity.java:40)
                                                                              at android.app.Activity.performCreate(Activity.java:5188)
                                                                              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
                                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2082)
                                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2143) 
                                                                              at android.app.ActivityThread.access$700(ActivityThread.java:140) 
                                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237) 
                                                                              at android.os.Handler.dispatchMessage(Handler.java:99) 
                                                                              at android.os.Looper.loop(Looper.java:174) 
                                                                              at android.app.ActivityThread.main(ActivityThread.java:4952) 
                                                                              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:1027) 
                                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794) 
                                                                              at dalvik.system.NativeStart.main(Native Method) 
                                                                           Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f020089 a=-1 r=0x7f020089}
                                                                              at android.content.res.Resources.loadDrawable(Resources.java:2784)
                                                                              at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
                                                                              at android.widget.ImageView.&lt;init&gt;(ImageView.java:126)
                                                                              at android.support.v7.widget.AppCompatImageView.&lt;init&gt;(AppCompatImageView.java:57)
                                                                              at android.support.v7.widget.AppCompatImageView.&lt;init&gt;(AppCompatImageView.java:53)
                                                                              at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
                                                                              at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1013)
                                                                              at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1072)
                                                                              at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
                                                                              at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:681)
                                                                              at android.view.LayoutInflater.rInflate(LayoutInflater.java:752) 
                                                                              at android.view.LayoutInflater.rInflate(LayoutInflater.java:760) 
                                                                              at android.view.LayoutInflater.rInflate(LayoutInflater.java:760) 
                                                                              at android.view.LayoutInflater.inflate(LayoutInflater.java:495) 
                                                                              at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
                                                                              at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
                                                                              at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284) 
                                                                              at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) 
                                                                              at customer.aclass.customer.LoginActivity.onCreate(LoginActivity.java:40) 
                                                                              at android.app.Activity.performCreate(Activity.java:5188) 
                                                                              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094) 
                                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2082) 
                                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2143) 
                                                                              at android.app.ActivityThread.access$700(ActivityThread.java:140) 
                                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237) 
                                                                              at android.os.Handler.dispatchMessage(Handler.java:99) 
                                                                              at android.os.Looper.loop(Looper.java:174) 
                                                                              at android.app.ActivityThread.main(ActivityThread.java:4952) 
                                                                              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:1027) 
                                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794) 
                                                                              at dalvik.system.NativeStart.main(Native Method)
  </code></pre>