title: How to build mailcore2 library for android
body: <p>I have never used Android-NDK before and here comes the problem when I want to compile <a href="https://github.com/MailCore/mailcore2/blob/master/build-android/README.md#build-for-android" rel="nofollow">mailcore2</a> library for android on windows. There is not much explanation given on compiling the library. Can someone please help me with this?</p>
  
  <p>Also, I can run the application on emulator using given *.aar but when I run it on device I get the following error:</p>
  
  <pre><code>03-23 12:53:54.223 27409-27409/com.libmailcore.androidexample A/libc﹕ Fatal signal 11 (SIGSEGV), code 2, fault addr 0x766e6f6f in tid 27409 (.androidexample)
  03-23 12:53:55.063 27449-27449/com.libmailcore.androidexample A/libc﹕ Fatal signal 11 (SIGSEGV), code 2, fault addr 0x766e6f6f in tid 27449 (.androidexample)
  </code></pre>
  
  <p>What is the fix for this?</p>
  
  <p>Thanks</p>