If you are developing android and using real device to install your build APK instead of virtual device and you are using Xiaomi phone (Mine is Xiaomi Redmi 4x) probably you will facing this error.
To fix this, what you need to do are just enable these configuration in your device.
- Developer Mode
- USB Debugging
- Install via USB
- USB debugging (Security Settings)