androidthings / drivers-samples

Peripheral driver samples
Apache License 2.0
153 stars 57 forks source link

. #14

Closed ghost closed 6 years ago

Fleker commented 6 years ago

Try rebooting your device and seeing whether that works.

itamar6587 commented 6 years ago

HI, How did you solve this issue? I'm having the same problems..

mangini commented 6 years ago

@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.

itamar6587 commented 6 years ago

@mangini thanks for your reply. I'll check it. thanks

Danielx303 commented 6 years ago

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"/>