ArduinoFirmata-Android icon indicating copy to clipboard operation
ArduinoFirmata-Android copied to clipboard

Error when the app is opened

Open Ligerboy opened this issue 7 years ago • 0 comments

Since i am new to android, i am not familiar with much errors. But i got the below error when i tried to open my app.

I included the usbserial_for_ android library in android as below:

File -> New -> Import Module -> (path of) usb-serial-for-android

With usb-serial-android-examples unchecked i imported the library.

Project Structure -> modules -> app -> dependencies -> (added) usb-serial-android

screenshot 10

My main activity looks like.

screenshot 9

                                                              <java.lang.NoSuchMethodError: No static method acquire(Landroid/hardware/usb/UsbManager;)Lcom/hoho/android/usbserial/driver/UsbSerialDriver; in class Lcom/hoho/android/usbserial/driver/UsbSerialProber; or its super classes (declaration of 'com.hoho.android.usbserial.driver.UsbSerialProber' appears in /data/app/com.arsenal.rbot-1/split_lib_slice_8_apk.apk)
                                                                  at org.shokai.firmata.ArduinoFirmata.<init>(ArduinoFirmata.java:67)
                                                                  at com.arsenal.rbot.MainActivity.onCreate(MainActivity.java:48)>

Hope for better solution. Thank you for providing this library. Nice WORK!!!

Ligerboy avatar Feb 09 '18 02:02 Ligerboy