Ahsan Nafees Ansari
Ahsan Nafees Ansari

Reputation: 1

Android things: failed to resolve PeripheralManagerService

I am trying to run a simple program for Raspberry Pi 3 powered by Android Things. The program will try to read and write through serial port. When I try to get the UART device list, I get:

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/things/pio/PeripheralManagerService

To make it more clear:

enter image description here

Upvotes: 0

Views: 818

Answers (1)

Mustafa Bohra
Mustafa Bohra

Reputation: 318

Use latest version of Android Things which is

'com.google.android.things:androidthings:1.0'

and change PeripheralManagerService object into

PeripheralManager pioManager = PeripheralManager.getInstance()

Upvotes: 1

Related Questions