androidandroid-studio

Error while installing apk: INSTALL PARSE_FAILED_NOT_APK


I'm getting error INSTALL PARSE_FAILED_NOT_APK while building and installing my apk, after making any changes on the code the app just doesn't install any more on phisical devices. I'm not getting the problem in virtual devices.

The Android Studio log says:

Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_NOT_APK
Installation failed due to: 'null'
Retry

This problem is happening only after updating android studio from v3.2 to v3.5, after that I've updated to v3.5.1 expecting a bug fix, but nothing happened. I've updated several components when I updated my IDE, so I don't know exactly if one of them is the one that caused the problem.


Solution

  • I've found similar problem here, so I tried one of the given solutions, adding the -r and -t flags to the Install flags in the Run/Debug Configuration dialog, and it solved my problem, Run/Debug Configuration dialog can be found here according to Jetbrains