Dependent apk is not installed


I have an application that has a two-part (client + server). User needs to install server application to properly work with the client application, They communicate through IPC communication. All the core logic inside the server app.

Now I am facing a problem to install server apk file first before client apk to pass the build. I am getting an exception like: Unsupported file /tmp/demo-debug.apk given on commandline.

What can I do in this situation? Expecting your help as soon as possible.

Following are the codes that I used for downloading server apk first:


“chmod +x gradlew”
yes | sdkmanager “platforms;android-28”
wget -O /tmp/demo-debug.apk
sudo chmod +x /tmp/demo-debug.apk
sudo apt-get install /tmp/demo-debug.apk

Getting the following exception:
E: Unsupported file /tmp/demo-debug.apk given on commandline
The command “sudo apt-get install /tmp/demo-debug.apk” failed and exited with 100 during .

Monir Zzaman