Solution:
Dual apps might cause this error, we must delete the dual applications in Settings - App - Dual accounts - Delete (the device will restart)
Disable and re-enable USB Debugging.
Settings- About the phone-press 10 times on MIUI Version- Settings-Additional Settings-Developer Options -Activate or Disable USB Debugging - Restart
Does it help?