# Creating an Android Library with openCV

**URL:** <https://forum.opencv.org/t/creating-an-android-library-with-opencv/18582>\
**Category:** Android/Java\
**Tags:** android, build\
**Created:** [August 25, 2024, 5:51am UTC](https://forum.opencv.org/t/creating-an-android-library-with-opencv/18582 "2024-08-25T05:51:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snehith\_Nair](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/snehith_nair/32/11005_2.png) [@Snehith\_Nair](https://forum.opencv.org/u/Snehith_Nair)\
**Post date:** [August 25, 2024, 5:51am UTC](https://forum.opencv.org/t/creating-an-android-library-with-opencv/18582/1 "2024-08-25T05:51:36Z")

</div>

I’m making an android library which uses openCV as a dependency. After publishing it to maven and using it as a library it throws an error **"Caused by: java.lang.ClassNotFoundException: Didn’t find class “org.opencv.android.OpenCVLoader”**

What can be possible cause of error?

 ![Screenshot 2024-08-24 at 9.47.50 PM](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/d/d7f200301c4037c4533c79493ca27856bc8af7bd.png)
