title: export mupdf and android studio 0.5.4
body: <p>First: I want to view pdf files in my android app.
  I googled and analyzed and decided to use <a href="http://www.mupdf.com/" rel="nofollow">mupdf</a>
  For a start I use <a href="http://mupdf.blogspot.ru/2013/01/compile-mu.html?showComment=1397338430022" rel="nofollow">this guide</a> to build demo project and it's work fine in eclipse. But I need to run it in Android studio. I try to export from eclipse as gradle project and import to Android Studio. File explorer work, but when I opened pdf I get error:</p>
  
  <pre><code> java.lang.ExceptionInInitializerError
          at com.artifex.mupdfdemo.MuPDFActivity.openFile(MuPDFActivity.java:213)
          at com.artifex.mupdfdemo.MuPDFActivity.onCreate(MuPDFActivity.java:309)
          at android.app.Activity.performCreate(Activity.java:5008)
   ...
   Caused by: java.lang.UnsatisfiedLinkError: Couldn't load mupdf: findLibrary returned null
          at java.lang.Runtime.loadLibrary(Runtime.java:365)
          at java.lang.System.loadLibrary(System.java:535)
          at com.artifex.mupdfdemo.MuPDFCore.&lt;clinit&gt;(MuPDFCore.java:14)
          at com.artifex.mupdfdemo.MuPDFActivity.openFile(MuPDFActivity.java:213)
          at com.artifex.mupdfdemo.MuPDFActivity.onCreate(MuPDFActivity.java:309)
  </code></pre>
  
  <p>I try to just import project without convert it in Eclipse, but when I run application, I get error:</p>
  
  <pre><code>Error:Execution failed for task ':app:compileDebugNdk'.
  </code></pre>
  
  <blockquote>
    <p>com.android.ide.common.internal.LoggedErrorException: Failed to run command:
        C:\SpeedBoots\android-ndk-r9d\ndk-build.cmd NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\mupdf\platform\android\app\build\ndk\debug\Android.mk APP_PLATFORM=android-19 NDK_OUT=C:\mupdf\platform\android\app\build\ndk\debug\obj NDK_LIBS_OUT=C:\mupdf\platform\android\app\build\ndk\debug\lib APP_ABI=all
    Error Code:
        2
    Output:
        make.exe: <em>*</em> No rule to make target <code>C:\mupdf\platform\android\app\build\ndk\debug\obj/local/armeabi-v7a/objs/mupdf/C_\mupdf\platform\android\app\src\main\jni', needed by</code>C:\mupdf\platform\android\app\build\ndk\debug\obj/local/armeabi-v7a/objs/mupdf/C_\mupdf\platform\android\app\src\main\jni\mupdf.o'.  Stop.</p>
  </blockquote>
  
  <ol>
  <li>How to add mupdf library to Android Studio and in my project? I will appreciate any link, examples. Any that could help.</li>
  <li>How to import projects with native code to Android Studio? I'm absolute noob in NDK and scare that I need to read tons of tutorial and books for just import project.</li>
  </ol>