Question

I am working on the USB serial. I want to make a Nexus to read data from USB.

I found the example project to do it. here

So, I cloned the project and complied with eclipse. Everything works well but I got this warning, and I tried to connect my usb to the Nexus by serial port. However, it cannot find my usb. I don't know maybe it's because the warning.

I searched and found some recommendations but they don't work for me.

Furthermore, I have add my usb's product-id and vendor-id to a xml file.

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <usb-device vendor-id="1516" product-id="8628" />
</resources>

Could you help me find it out?

enter image description here

Thank in advance!

Was it helpful?

Solution

Are you using the UsbSerialLibrary as a Library for your main project? In that case please go to:

Main project's properties -> build path -> projects tab 

and make sure to remove the UsbSerialLibrary from that place. You should make sure it is present in

Main project's properties -> android -> Library

If it is not there, please select add and that should be it. Hope this helps to remove that warning. Cheers!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top