androidthings / sample-uartloopback

Echo received characters over a UART with Android Things
Apache License 2.0
79 stars 39 forks source link

App get crashed when i use PeripheralManager. #14

Open imbichitra opened 4 years ago

imbichitra commented 4 years ago

Hi , The app is getting chrashed when i use PeripheralManager.getInstance(); below is error given.


Caused by: java.lang.RuntimeException: Stub!
        at com.google.android.things.pio.PeripheralManager.getInstance(PeripheralManager.java:21)
        at com.asiczen.usb1.UartActivity.onCreate(UartActivity.java:43)
        at android.app.Activity.performCreate(Activity.java:6858)
Fleker commented 4 years ago

You should make sure that <uses-library android:name="com.google.android.things"/> is in your project manifest and that your device is infact running Android Things.

gamenic-babin commented 4 years ago

I added above uses to manifest it gives build error , install failed missing shared library

ajaykeshri commented 2 years ago

is there any solution for this? I am also getting same issue. Please help