January 28, 2020

How to install apk file on android emulator

By Lalit Vasan


Sometimes you do not have android device to test the andorid app (apk). But don’t worry you can install the android app on the emulator. It is very easy to install and test the app on android emulator. For this even you do not require any IDE or any development experience.

In this post, I have will show you how to install any external app (apk) to the android emulator.

I assume that the emulator is already running on your machine.

To know more how to run the emulator

Following are the step to install the apk on the android emulator.

Linux/Mac

  1. Paste the .apk file to platform-tools in the android-sdk directory.
  2. Open Terminal and navigate to platform-tools folder in android-sdk.
  3. Then
    Execute this command –

    ./adb install xyz.apk
  4. If the installation is successful then you will get your app in the launcher of your android emulator.

Windows

  1. Open the cmd, and move to the platform-tools folder of the android-sdk directory.
  2. Paste the .apk file in the ‘platform-tools‘ folder.
  3. Then
    Execute this command –

    adb install xyz.apk
  4. If the installation is successful then you will get your app in the launcher of your android emulator.





Please feel free to comment as well as ask questions. And, yeah! If this post helps you please do share!

Enjoy Coding and Share Knowledge