Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installation failed with message Failed to commit install session

Getting an error message while trying to run an apk through android studio 3.4 canary 1.

Gradle plugin version com.android.tools.build:gradle:3.4.0-alpha01

Installation failed with message Failed to commit install session 526049657 with command cmd package install-commit 526049657.. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing. 

I have tried uninstalling the apk, restarting android studio and the device and invalidating caches and rebuilding but nothing seems to work.

like image 311
Jude Fernandes Avatar asked Oct 23 '18 06:10

Jude Fernandes


1 Answers

I disabled "Instant Run" in settings, and it works for me.(Android Studio 3.4 canary)

picture

Then you can see the adb command executed in the terminal is "adb push", while it is "adb install-multiple" before that is disabled.

like image 195
Lu Z Avatar answered Sep 22 '22 16:09

Lu Z