When I toggle on the install via USB in developer mode:
Faced same problem with Xiaomi Mi5 MUI9.
Turning on/off connections or MUI optimization did not work for me. What worked is:
Settings -> Additional Settings -> Privacy -> enable Unknown sources