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
I had an error of Session 'app': Error Installing APKs in Redmi 3S 6.0.1 MIUI Global 8.2. After turning OFF Instant Run in Android Studio, the error did not occur again. For this, Go to File Menu->Settings->Build, Execution, Deployment->Instant Run->Check OFF Enable Instant Run.
But I wanted to use Instant Run features, so, Go to Settings-> Additional settings->Developer options->Turn off MIUI optimization. Restart phone.
Both of the above methods worked. If the error still occurs, check to Turn on USB debugging and Install via USB.
Step 1 : Turn on Developer Option (Settings > About Phone > Click 7 Times On "MIUI Version").
Step 2 : Connect Your Device via USB to PC
step 3 : Settings > Additional Settings > Developer Options > Turn On USB Debugging.
Step 4 : Also You Should turn On Settings > Additional Settings > Developer Options > install Via USB
Enjoy Coding ... :-)
in miui 9 u must have access to the INTERNET to make it work
Step 1 : Turn on Developer Option (Settings > About Phone > Click 7 Times On "MIUI Version").
Step 2 : Connect Your Device via USB to PC
step 3 : Settings > Additional Settings > Developer Options > Turn On USB Debugging.
Step 4 : Also You Should turn On Settings > Additional Settings > Developer Options > install Via USB
Go to Settings-> Additional settings->Developer options->Turn off MIUI optimization You must Turn on USB debugging and Install via USB Hope it help
Happens to my Xiaomi phone after updated it to MIUI 8. Took me hours to figure it out!
Check the followings if you're a victim too:
Update (MIUI 8):
Signin in to MI account is required to enable Install via USB option.
Update 2
For some devices (e.g. Redmi) you might need to turn off MIUI Optimization and reboot your phone.
Settings > Additional Settings > Developer Options > MIUI Optimization
P.S. don't update MIUI unless necessary!
May the victims saved