I try to install app via adb and get a error:
$ ./adb -d install /Users/dimon/Projects/one-place/myprogram/platforms/android/build/outputs/apk/android-debug.
For MIUI OS Device
1) Go to Setting
2) Scroll down to Additional Setting
3) You will find Developer option at bottom
4) Turn this on - Install via USB: Toggle On
By turning this on, It is working charm in my MIUI8 device.
The problem seems to be with Instant Run feature.Go to "File -> Settings -> Build, Execution, Deployment -> Instant Run" and just disable it.
Hope this works if above answers doesnt work..
On Xiaomi Mi5s with MIUI8.3 (Android 6) Xiaomi.EU Rom:
Settings/ Other Settings / Developer Options / Switch on: Allow USB Debug, Allow USB install and Allow USB Debug (Security options)
{Sorry for the translation, my device has spanish}
Its a Xiaomi's issue If possible update MIUI to latest version then go to Settings > Additional Settings > Developer Options > Developer options: Check the Install via USB option.
This solved my issue hope it will also solve yours good luck!
The same trouble with same device has been here.
So, it's Xiaomi trouble, and here is a solution for this problem:
Go to the "Security" application and tap "Options" at top right corner
Scroll down to "Feature Settings" group, and look for "Permissions"
At there switch off "Install via USB" option, which manages installation of the apps via USB and doesn't allow it.
On Latest Redmi Device
Settings > Additional Settings > Developer Options > Developer options: Check the Install via USB option.
Good luck!
One more thing: after some updates of MIUI developer mode becomes disabled. I was sure, that is was turned on, but i couldn't start the application. So i reenabled developer mode and everything started to work. I've encountered this problem several times. Hope it helps.