Skip to content

Error when the app is opened #21

Description

@Ligerboy

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!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions