Yesterday my app was running perfect from Android Studio but today when I started working on my app and running it i am getting error message continuously
Android Studio
I had the same issue in MIUI. Enabling OEM unlocking worked for me without disabling MIUI optimization.
Below is a screenshot of my Redmi 3s prime developer options setting: