title: Android Fresco: Error inflating class com.facebook.samples.zoomable.ZoomableDraweeView
body: <p>I want to create application using <code>Fresco</code> library with zoom functionality using <code>ZoomableDraweeView</code> but when I start my application, application got crashed. Below is my code so please help me to solve this issue and thanks in advance. </p>
  
  <pre><code>public class ZoomActivity extends Activity {
  
      private ZoomableDraweeView view;
      private DraweeController ctrl;
      private GenericDraweeHierarchy hierarchy;
  
      @Override
      protected void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          Fresco.initialize(this);
          setContentView(R.layout.activity_zoom);
  
          Uri imageUri = Uri.parse("http://i.imgur.com/76Jfv9b.jpg");
          view = (ZoomableDraweeView) findViewById(R.id.zoomable);
  
          ctrl = Fresco.newDraweeControllerBuilder().setUri(imageUri).setTapToRetryEnabled(true).build();
          hierarchy = new GenericDraweeHierarchyBuilder(getResources())
                  .setActualImageScaleType(ScalingUtils.ScaleType.FIT_CENTER)
                  .setProgressBarImage(new ProgressBarDrawable())
                  .build();
          view.setController(ctrl);
          view.setHierarchy(hierarchy);
      }
  }
  </code></pre>
  
  <p>Here is my layout.</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
      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"
      tools:context="com.example.android.imageloaderexample.Activity.Fresco.ZoomActivity"&gt;
  
      &lt;com.facebook.samples.zoomable.ZoomableDraweeView
          android:id="@+id/zoomable"
          android:layout_width="match_parent"
          android:layout_height="match_parent"/&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Here is Gradle.</p>
  
  <pre><code>    apply plugin: 'com.android.application'
  android {
      compileSdkVersion 23
      buildToolsVersion "23.0.2"
  
      defaultConfig {
          applicationId "com.example.android.imageloaderexample"
          minSdkVersion 15
          targetSdkVersion 23
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      testCompile 'junit:junit:4.12'
      compile 'com.android.support:appcompat-v7:23.3.0'
      compile files('libs/picasso-2.5.2.jar')
      compile files('libs/universal-image-loader-1.9.5.jar')
      compile files('libs/glide-3.6.1.jar')
      compile 'com.facebook.fresco:fresco:0.10.0'
      compile 'com.facebook.fresco:animated-gif:0.10.0'
      compile "com.facebook.fresco:imagepipeline-okhttp:0.10.0+"
  }
  </code></pre>
  
  <p>Below is my logcate.</p>
  
  <pre><code>    FATAL EXCEPTION:  Process: com.example.android.imageloaderexample, PID: 
  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.imageloaderexample/com.example.android.imageloaderexample.Activity.Fresco.ZoomActivity}: android.view.InflateException: Binary XML file line #9: Error inflating class com.facebook.samples.zoomable.ZoomableDraweeView
  
  at java.lang.ClassLoader.loadClass(ClassLoader.java:504)... 23 more
  Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack availableBB
  </code></pre>