Java Question Error compiling UsbSerial

Pesciolina

Active Member
Licensed User
Longtime User
Good morning,

i am trying to compile the original UsbSerial library but i get this erro

B4X:
Starting step: Compiling Java code.
javac 1.8.0_171
C:\Android\SLC\UsbSerial\src\anywheresoftware\b4a\objects\UsbSerial.java:185: error: method open in interface UsbSerialPort cannot be applied to given types;
            port.open();
                ^
  required: UsbDeviceConnection
  found: no arguments
  reason: actual and formal argument lists differ in length
Note: C:\Android\SLC\UsbSerial\src\com\hoho\android\usbserial\driver\CommonUsbSerialPort.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error


Error.

error_usb.png
 

Pesciolina

Active Member
Licensed User
Longtime User
Completed successfully.
*** Non dimenticare di aggiornare l'elenco delle librerie nell'IDE (fai clic con il pulsante destro del mouse e scegli Aggiorna) ***

now try to create a custom Driver for one of my tools

Thank you Agraham
 
Top