title: How to resolve the java.lang.UnsatisfiedLinkError in NDK in Android?
body: <p>I am new in ndk development in android.I have gone through the file system of ndk android.
  Here, explaining what i have done.
  1) i have created a folder named "jni" then create 2 file named Android.mk and ndkfoo.c.</p>
  
  <p>In Android.mk</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  
  include $(CLEAR_VARS)
  
  # Here we give our module name and source file(s)
  LOCAL_MODULE    := ndkfoo
  LOCAL_SRC_FILES := ndkfoo.c
  
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>and in ndkfoo.c</p>
  
  <pre><code>#include &lt;string.h&gt;
  #include &lt;jni.h&gt;
  
  jstring Java_com_mindtherobot_samples_ndkfoo_NdkFooActivity_invokeNativeFunction(JNIEnv* env, jobject javaThis) {
   return (*env)-&gt;NewStringUTF(env, "Hello from native code!");
  }
  </code></pre>
  
  <p>then i have created NdkFooActivity class, in which i have written</p>
  
  <pre><code>// load the library - name matches jni/Android.mk
   static {
    System.loadLibrary("ndkfoo");
   }
  </code></pre>
  
  <p>But now when i build from cygwin in xp it creates .so file successfully then i run as android application. It gives me java.lang.UnsatisfiedLinkError in LOGCAT.</p>
  
  <p>So, Please let me know where i am wrong.</p>
  
  <p>Thanks in Advance,</p>