I am getting this warning on the android studio while I connected my redmi note 5 pro and try to run android.
Adb connection Error: An existing connection was forcibly closed by the remote host.
I have tried this
adb kill-server && adb start-server
remove any adb process in the taskbar
restart studio, clean and rebuild