insufficient permissions for device: user in plugdev group; are your udev rules wrong?
You see this error when installing your app through ADB. This error will go away on Mi phone running Oreo 8.1 if you use the device as MTP device.
Link to stack overflow page which solved this issue is given below.