I am developing an app in android studio and I use xiaomi mi a1 to run it on it. I turned on USB debugging and USB tethering and I do see the phone in android studio devices. The problem is that when I try to run it after some time it says "Error Installing APK".
Notes:
- I turned off insta run.
- When android 8 was on my phone everything worked just fine. Since I installed android 9 it stopped working.
Anyone knows what's the problem or how to fix it?
EDIT: When I turned off insta run there was no error but it kept "installing apk's" for about 20 minutes and the app didn't load on the phone (On other phones it took max 1-2 minutes).