Click here to Skip to main content
14,240,732 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi,
I was getting the message:
$ adb install-multiple -r -t D:\Android\projects\app\build\intermediates\resources\instant-run\debug\resources-debug.apk D:\Android\projects\app\build\intermediates\split-apk\debug\dep\dependencies.apk D:\Android\projects\app\build\intermediates\split-apk\debug\slices\slice_5.apk D:\Android\projects\app\build\intermediates\split-apk\debug\slices\slice_0.apk D:\Android\projects\app\build\intermediates\split-apk\debug\slices\slice_2.apk D:\Android\projects\app\build\intermediates\split-apk\debug\slices\slice_1.apk D:\Android\projects\app\build\intermediates\split-apk\debug\slices\slice_4.apk D:\Android\projects\app\build\intermediates\split-apk\debug\slices\slice_9.apk D:\Android\projects\app\build\intermediates\split-apk\debug\slices\slice_7.apk D:\Android\projects\app\build\intermediates\split-apk\debug\slices\slice_3.apk D:\Android\projects\app\build\intermediates\split-apk\debug\slices\slice_8.apk D:\Android\projects\app\build\intermediates\split-apk\debug\slices\slice_6.apk D:\Android\projects\app\build\intermediates\instant-run-apk\debug\app-debug.apk 
$ adb shell pm uninstall com.example.hello1
Unknown failure: cmd: Can't find service: package
Error while Installing APKs

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

WARNING: Uninstalling will remove the application data!


I tried to uninstall but I am still getting the same error. Same body please guide me.

Zulfi.


What I have tried:

I cliked on the uninstall button but it is still giving me the same error.
Posted
Comments
David Crow 29-Apr-19 12:15pm
   
You probably have some other app on your device with the same name. I run into this problem all the time with my personal apps. Since they are all in debug mode, Android Studio always tries to install a app-debug.apk file. I have to remember to rename it prior to installation.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100