error: insufficient permissions for device: user in plugdev group; are your udev rules wrong? code example

Example 1: error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?

This worked for me

- On the Android device, drag the top menu and select "USB for file transfer"
- Press "Run" again

Example 2: error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?

This worked for me

- On the Android device, drag the top menu and select "USB for file transfer"
- Press "Run" again

Example 3: error: insufficient permissions for device

sudo adb start-server

Example 4: error: insufficient permissions for device

adb kill-server