Android OpenCV imwrite No Implementation Found
<p>I am trying to use Imgcodecs.imwrite in my OpenCV Android application but it keeps giving my the error:</p>

<pre><code>No implementation found for boolean org.opencv.imgcodecs.Imgcodecs.imwrite_1(java.lang.String, long) (tried Java_org_opencv_imgcodecs_Imgcodecs_imwrite_11 and Java_org_opencv_imgcodecs_Imgcodecs_imwrite_11__Ljava_lang_String_2J)
</code></pre>

<p>My code is:</p>

<pre><code> private void takePhoto(final Mat rgba) {


        Imgproc.cvtColor(rgba, mBgr, Imgproc.COLOR_RGBA2BGR, 3);

        String baseDir = Environment.getExternalStorageDirectory().getAbsolutePath();
        String fileName = "myFile.jpg";

        imageFile = new File(baseDir + File.separator + fileName);
        Imgcodecs.imwrite(imageFile.toString(), mBgr);


        final Intent intent = new Intent(this, LabActivity.class);

        intent.putExtra(LabActivity.EXTRA_PHOTO_DATA_PATH,
                imageFile.toString());

        startActivity(intent);
    }
</code></pre>

<p>Many thanks</p>