I\'m using Android Studio to connect to run app in my Xiaomi Redmi Note 3G device. My device is already found in the Choose Device Dialog, but I keep getting the
Follow the steps
Go to settings -> Additional Settings -> Developer Options(if not found then tap MIUI version in About phone multiple times) -> Turn off MIUI optimization.
GO to settings -> Mi Account -> Sign out(if signed in)-> developer options->turn on Install via USB(sign in page will open) -> Sign in to your mi Account
It should work, if still these steps doesn't work for you then reboot your phone after these two steps
IF YOU HAVE TRIED EVERYTHING, TRY THESE STEPS ALSO
Step 0: Turn On MIUI Optimization & Restart.
Step 1: Settings > Additional Settings > Privacy: Check the Unknown Sources option.
Step 2: Settings > Additional Settings > Developer Options > Turn On USB Debugging
Step 3: Settings > Additional Settings > Developer Options > install Via USB
Step 4: Settings > Additional Settings > Developer Options > Turn off MIUI Optimization.
Step 5: Restart your Mobile.
Sometimes it happens because the user does not accept the installation in time. You can turn off "Monitor apps installed by USB" to override user confirmation.
All the above instructions should work but if you're using MI Redmi Note 5A or later versions, you'll see that toggling "install via USB" toggles back off.
That's because the new versions somehow requires you to be in China. To fix this, download Windscribe VPN from playstore(it's free to use). Off your wifi and on mobile data. Connect to HongKong.
Go back and toggle "Install via USB". It'll work now. Disconnect the VPN.
I have same problem before, here is my solution:
Step 1: Go to "Setting" → find "Developer options" in System, and click.
Step 2: TURN ON "Verify apps over USB" in Debbuging section.
Step 3: Try "Run app" in Android Studio again!
for check, sometime just need go to: