Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App get crashed when i use PeripheralManager. #14

Open
imbichitra opened this issue Nov 27, 2019 · 3 comments
Open

App get crashed when i use PeripheralManager. #14

imbichitra opened this issue Nov 27, 2019 · 3 comments

Comments

@imbichitra
Copy link

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
Copy link

Fleker commented Nov 27, 2019

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
Copy link

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

@ajaykeshri
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants