couldn't find "libmynative.so" even though its copied to libs folder(Android NDK)
<p>I successfully copied "libmynative.so" folder to armeabi folder</p>

<pre><code>[armeabi] Compile++ thumb: mynative &lt;= helloworld.cpp
[armeabi] Compile++ thumb: mynative &lt;= jni_entry.cpp
[armeabi] SharedLibrary  : libmynative.so
[armeabi] Install        : libmynative.so =&gt;libs/armeabi/libmynative.so
</code></pre>

<p>Still I get the following error </p>

<pre><code>02-20 01:01:22.949 10851-10851/? E/AndroidRuntime: FATAL EXCEPTION: main
                                               Process: com.lol.jnihelloworld, PID: 10851
                                               java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.lol.jnihelloworld-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libmynative.so"
                                                   at java.lang.Runtime.loadLibrary(Runtime.java:366)
                                                   at java.lang.System.loadLibrary(System.java:988)
                                                   at com.lol.jnihelloworld.MainActivity.&lt;clinit&gt;(MainActivity.java:19)
                                                   at java.lang.reflect.Constructor.newInstance(Native Method)
                                                   at java.lang.Class.newInstance(Class.java:1606)
                                                   at android.app.Instrumentation.newActivity(Instrumentation.java:1089)
                                                   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2240)
                                                   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413)
                                                   at android.app.ActivityThread.access$800(ActivityThread.java:155)
                                                   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
                                                   at android.os.Handler.dispatchMessage(Handler.java:102)
                                                   at android.os.Looper.loop(Looper.java:135)
                                                   at android.app.ActivityThread.main(ActivityThread.java:5343)
                                                   at java.lang.reflect.Method.invoke(Native Method)
                                                   at java.lang.reflect.Method.invoke(Method.java:372)
                                                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
                                                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
</code></pre>

<p>Here is my MainActivity </p>

<pre><code>package com.lol.jnihelloworld;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import org.w3c.dom.Text;


public class MainActivity extends Activity {


public native String getNativeMessage();


static {
    System.loadLibrary("mynative");
}


Button btnInvokeJNI;
TextView tvNativeMsg;


/**
 * Called when the activity is first created.
 */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);


    btnInvokeJNI = (Button) findViewById(R.id.btnInvokeJni);
    tvNativeMsg = (TextView) findViewById(R.id.txtJniText);


    btnInvokeJNI.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            tvNativeMsg.setText(getNativeMessage());
        }
    });
}
</code></pre>

<p>}</p>

<p>The error indicates to System.loadLibrary("mynative");
I am not able to resolve it.</p>

<p><a href="http://i.stack.imgur.com/Q3nJr.png" rel="nofollow">Snapshot</a></p>