Closed ghost closed 6 years ago
HI, How did you solve this issue? I'm having the same problems..
@itamar6587 Make sure the version of Android Things flashed on your board matches the version of the SDK used on your code and on the driver. If you are testing this sample on a board flashed with pre-0.5, the MANAGE_SENSOR_DRIVERS permissions didn't exist at that time, and it can cause an exception similar to what you are getting.
@mangini thanks for your reply. I'll check it. thanks
Also - this thing can help you - please add 2 things to your Android Manifest file:
<uses-permission android:name="com.google.android.things.permission.MANAGE_INPUT_DRIVERS" />
<uses-permission android:name="com.google.android.things.permission.USE_PERIPHERAL_IO"/>
Try rebooting your device and seeing whether that works.