I have a Redmi K20, the following is MI, Redmi specific that I learned in a hard way
How I ended up in the error: I uninstalled the debug app from the phone because my assets were not accessible (maybe I had faulty source code)
Solution (steps that worked for me in sequence):
- Uninstall the app
- As per suggestion above by @Jayaprakash G and all, I turned off MIUI optimization
- I tried finding "Instant Run", but seems missing in Android Studio 3.6.2
- MI supports "Second Space", switch to it. You'll observe the app is still there. Again uninstall.
- Switch space back to original again. By any chance, if you see the same app in frequently used app in the app drawer, again uninstall.
- Try to compile and run the app from Android Studio and let it show in the app phone (Error 3 will be still there, but installation will succeed).
- Clean the project, close Android Studio
- Start Android Studio, now everything will work as normal without the Error 3