I am new in JNI and trying to use a [library][1] in android project using ndk. It seems the
It seems the library is loaded in the android project properly using the following code :
static{
System.loadLibrary("usb1.0");
}
but when I try to call a native method following the libusb API like libusb_init()
I get following error :
No implementation found for void com.example.hellojni.MainActivity.libusb_init() (tried Java_com_example_hellojni_MainActivity_libusb_1init and Java_com_example_hellojni_MainActivity_libusb_1init__)
what am I missing ? Do you have any better beginner examples ? [1]: https://libusb.sourceforge.io/api-1.0/index.html