title: Android Studio 0.2.6 and ZBar project setup
body: <p>I am using the latest Android Studio 0.2.6 and the latest ZBar Android SDK.  What I have done so far:</p>
  <ol>
  <li><p>Created a brand new project called QRTest</p>
  </li>
  <li><p>Created a folder called libs in my project</p>
  </li>
  <li><p>Put the content of the Zbar libs directory into my project folder</p>
  </li>
  <li><p>Right clicked the zbar.jar file in my project and Added as a Library</p>
  </li>
  <li><p>In my build.gradle file, edited it so that it is now:</p>
  <p>dependencies {
  compile 'com.android.support:support-v4:13.0.0'
  compile files('libs/zbar.jar')
  }</p>
  </li>
  <li><p>Basically copied the example code from the ZBar android SDK example to my own project.</p>
  </li>
  <li><p>The project compiles and runs fine (0 errors, 0 warnings), but it crashes upon running. The logs show:</p>
  </li>
  </ol>
  <blockquote>
  <p>09-01 16:06:02.026: W/dalvikvm(7050): Exception
  Ljava/lang/UnsatisfiedLinkError; thrown while initializing
  Lnet/sourceforge/zbar/ImageScanner;</p>
  <p>09-01 16:06:02.036:
  E/AndroidRuntime(7050): Caused by: java.lang.UnsatisfiedLinkError:
  Cannot load library: link_image[1891]:   209 could not load needed
  library 'libiconv.so' for 'libzbarjni.so' (load_library[1093]: Library
  'libiconv.so' not found)</p>
  <p>09-01 16:06:02.036: E/AndroidRuntime(7050):
  at net.sourceforge.zbar.ImageScanner.(Unknown Source)</p>
  </blockquote>
  <p>Looking at the code in my MainActivity, it appears to be dying here:</p>
  <pre><code> /* Instance barcode scanner */
   scanner = new ImageScanner();
  </code></pre>
  <p>Which seems to suggest to me that somehow I havent imported my Zbar library files correctly.  Any help on how to get this very basic example up and going would be appreciated!</p>
  <p>Just to note, if I use Android Studio to import a new project from the ZBar Android SDK example, it compiles and runs fine.  However, it is using the old ant build system.  I would rather use the new gradle build system, so thats why I'm trying to import ZBar into a fresh Android 0.2.6 project.  Thanks!</p>
  <p>Another note:  I tried modifying my build gradle to the accepted answer here: <a href="https://stackoverflow.com/questions/16952388/android-studio-zbar">How to change libs directory in Gradle?</a> and it did not work.</p>
  <p><img src="https://i.stack.imgur.com/TyLpN.jpg" alt="enter image description here" /></p>