java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader...couldn't find ""

asked 2015-01-03 02:59:31 -0500

jiarongkoh gravatar image

updated 2015-01-03 07:56:21 -0500

Hi all, I am trying to write a short activity to try out thresholding an image using OpenCV on Android using Eclipse. I used a sample code from and my aim for this set of code is to read an image from my resource/drawable folder and output another image after performing thresholding onto an imageview. The code is as follows:

public class mainactivity extends Activity {

private Mat destination;
protected void onCreate(Bundle savedInstanceState) {
    try {

        Mat source = Highgui.imread(getResources().getDrawable(R.drawable.splashbackground).toString(),
        destination = new Mat(source.rows(), source.cols(),

        destination = source;
        Imgproc.threshold(source, destination, 127, 255,
        Highgui.imwrite("ThreshZero.jpg", destination);

    Bitmap bmp = Bitmap.createBitmap(640, 480, Config.ARGB_8888);
    Utils.matToBitmap(destination, bmp);
    ImageView photo= (ImageView) findViewById(;


After running this set of code, the compiler throws the following set of errors:

01-03 16:45:09.963: E/AndroidRuntime(16118): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.test1-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find ""

I tried really hard to search for a solution on this but I still don't quite understand how to solve it. I have already imported the relevant OpenCV libraries. Pls help!

edit retag flag offensive close merge delete


i am facing the same problem... can any body plz help?

opencvlover gravatar imageopencvlover ( 2015-12-19 02:31:26 -0500 )edit