Search code examples
androidapk

APK which I developed used to work fine earlier, but suddenly stopped working with "App not installed" error


I was working on an android app to push FCM notifications. Now this debug app was getting installed on my mobile properly, however since am using my office laptop with intel-vt (HAXM) disabled I could not use the emulator and since the USB is also disabled, I could not use the ADB to side load.

So I was left with building the APK and manually side loading it on my mobile every time I made even a small change.(Redmi Note 5 Pro).

Now this app was working fine till the last time I uninstalled it.After which I tried to install the new version which failed with error "App not installed". Then I went on to install the older version thinking I might have screwed up something in the latest version, however all the older version APKs which were working absolutely fine earlier (at least they were installing i mean) stopped getting installed with the same error.

I have already uninstalled the older version and have double checked from system and there is no earlier APK existing on my mobile.

This is driving me crazy and has put a complete halt on my work as this is the only mobile I have. And yes I have tried restarting my mobile, I have even disabled MIUI optimizations from developers menu.

PS - I am an extreme noob at Android and have recently started with Android development so please forgive me if my question sounds very silly.

Appreciate any help I can get on this.


Solution

  • Please follow the following steps:

    • Go to Settings -> Permissions -> Install via USB: Uncheck your App if it's listed.
    • Go to Settings -> Additional Settings -> Privacy: Check the Unknown Sources option.
    • Finally go to Settings -> Additional Settings -> Developer options: Check the Install via USB option.