Yesterday my app was running perfect from Android Studio. But today when I upgraded to Android Studio 3.4 Canary 6, I started getting the following error message continuously:
Installation failed with message Failed to commit install session 1249295977 with command cmd package install-commit 1249295977.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
Error dialog:
When I click OK and then re-Run, I get this error message.
Session 'app':Error Installing APKs
I tried to manually delete the app, but it's already deleted from my phone. Restarting Android Studio, invalidating caches and rebuilding are not working either.
check 4 ways:
way 1: turn off Instant Run
File > Settings > Build,Execution,Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)
way 2: Go to Build --> Clean Project and Run again
way 3: For those who use Xiaomi phones, follow these steps:
Settings-> Additional Settings-> Developer opetions
Turn off MIUI Optimization and reboot your phone
Last Disable verify app over USB
way 4: Run Invalidate caches/restart in android studio
Choose the File option in windows and preference in mac
Select Invalidate caches/restart.
Click Invalidate and restart.
In my case I disable Instant Run from Setting-> Build, Execution, Deployment ->Instant Run
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With