Here is the error which developer faced.
![debug failed.PNG [Device Team] Fix For Unable to Debug Android App From Android Studio](http://u01.appmifile.com/images/2017/03/27/4267fd74-36b5-4cf8-a57e-fbd752f86061.png)
So what is the fix for this problem?
So let’s start,
1 : Just goto the about device and tap kernal version 5 time to enable Developer Option. ( If you are facing this issue means this setting is already enabled by you
)
![[Device Team] Fix For Unable to Debug Android App From Android Studio](http://bbs2.appmifile.com/static/image/smiley/comcom/22.gif)
2 : Now head back to developer settings and scroll down till end.
3 : There you found one lonely option named “Turn On MIUI Optiomization”.
4 : Just Tap on that option and turn him OFF.
5 : That’s it. You are ready to debug again.
![dev setting.png [Device Team] Fix For Unable to Debug Android App From Android Studio](http://u01.appmifile.com/images/2017/03/27/16969dd2-f007-40aa-a7c9-dad191c3ed46.png)
Here is result with my Redmi Note 3 MIUI Global 8.1.6.0
You may think that what is “MIUI Optiomization“? Are you?
Then answer is simple : This option is only seems on MIUI based Devices. This option enables settings & optimizations as per the guidelines set by the MIUI developers. This setting can sometimes cause a variety of issues on non-MIUI based apps such as Google Apps & Apps from Google Playstore. Its better to disable if you rely on Google Playstore for apps & services or use Global Stable or Global Beta MIUI ROMs.