Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native library not found exception for usb4java usage in android device #47

Closed
bzkrtmurat opened this issue Dec 3, 2015 · 3 comments
Closed

Comments

@bzkrtmurat
Copy link

I want to develop usb application with usb4java for Android device. I'm using Android Studio as an IDE and Ubuntu 14.04 as an operating system. I have added usb4java-1.2.0 file to my project. I can use Libusb function in my application. Firstly I wrote LibUsb.init() function in my MainActivity but there is an error about native library. I'm getting classloader exception.

Caused by: org.usb4java.LoaderException: Native library not found in classpath: /org/usb4java/linux-armv7l/libusb4java.so

I have analyzed Unsupported Platform tag in http://usb4java.org/nativelibs.html website. But I couldn't solve my problem with this way. After that I read https://github.com/usb4java/libusb4java and again I couldn't solve my problem with your way. Can you help me please.

@koh-osug
Copy link

Not sure what you have tried. But when you have followed the steps, you should have build a native library for Android and placed them into /org/usb4java/linux-armv7l/libusb4java.so. And you are still getting the error?

@bzkrtmurat
Copy link
Author

I'm still getting this error. I couldn't find solution so now I'm using android usb host api. But there's is different problem for asynchronous bulk transfer in usb host api. If you could help me I would start to use usb4java again. Thank you for your reply

@kayahr
Copy link
Member

kayahr commented Oct 10, 2018

usb4java 1.3.0-SNAPSHOT now supports "armv7l" architecture name and maps it to the "arm" binary.

But I'm not sure if this helps. Never tried using usb4java on Android. Finding the right binary is easy (and should work now with 1.3.0-SNAPSHOT) but I can't test if the binary really works on Android.

@kayahr kayahr closed this as completed Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants