Skip to content

While installing apk get error - cmd: Can't find service: package #6

@warademilind

Description

@warademilind

Hello,

Copied apk from local to Docker container.

C:\WINDOWS\system32>docker ps -l
CONTAINER ID   IMAGE                          COMMAND   CREATED          STATUS         PORTS     NAMES
2e5c65bc2f32   androidsdk/android-30:latest   "bash"    12 seconds ago   Up 6 seconds             intelligent_rubin

C:\WINDOWS\system32>docker cp C:\sample_apks\Calculator_base.apk  intelligent_rubin:/home

For installation of apk in docker used below command.

root@2e5c65bc2f32:/opt/android-sdk-linux# adb devices
List of devices attached
emulator-5554   device
root@2e5c65bc2f32:/opt/android-sdk-linux# adb install -r /home/Calculator_base.apk
Performing Streamed Install
adb: failed to install /home/Calculator_base.apk: cmd: Can't find service: package

Even I have checked that /home is having respective apk.

root@2e5c65bc2f32:/opt/android-sdk-linux# cd /home
root@2e5c65bc2f32:/home# ls
Calculator_base.apk

Can you please help me why above error occurred? cmd: Can't find service: package

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions