How to resolve? I use android studio 3.6.1 library : implementation 'com.google.android.things.contrib:driver-button:1.0' compileOnly 'com.google.android.things:androidthings:1.0' try { // Step 3. Initialize button driver with selected GPIO pin buttonInputDriver = new ButtonInputDriver( BUTTON_PIN_NAME, Button.LogicState.PRESSED_WHEN_LOW, KeyEvent.KEYCODE_SPACE); } catch (IOException e) { Log.e(TAG, "Error configuring GPIO pin", e); }
How to resolve? I use android studio 3.6.1
library :
implementation 'com.google.android.things.contrib:driver-button:1.0'
compileOnly 'com.google.android.things:androidthings:1.0'
try {
// Step 3. Initialize button driver with selected GPIO pin
buttonInputDriver = new ButtonInputDriver(
BUTTON_PIN_NAME,
Button.LogicState.PRESSED_WHEN_LOW,
KeyEvent.KEYCODE_SPACE);
} catch (IOException e) {
Log.e(TAG, "Error configuring GPIO pin", e);
}