11

How to install the application in *.apk file into the Android emulator?

exebook
  • 32,014
  • 33
  • 141
  • 226
RSSS
  • 809
  • 2
  • 8
  • 5
  • See https://stackoverflow.com/questions/17167636/how-to-install-an-apk-on-the-emulator-in-android-studio – caw Apr 17 '19 at 21:53

6 Answers6

19

launch the emulator

install with :

$> adb install fileexplorer.apk

then click on the icon on the emulator

Stéphane
  • 6,920
  • 2
  • 43
  • 53
8

adb devices --> It will give list of devices running by your SDK --> If there is only one device...use this command

adb install ".apk"

--> If there are multiple devices running then you need to select the emulator

adb -s emulator-5556 install ".apk"

Sonia
  • 129
  • 1
  • 5
2

Windows:

  1. Execute the emulator.
  2. Start the console (Windows XP), Run -> type cmd, and move to the platform-tools folder of SDK directory.
  3. Paste the APK file in the 'platform-tools' folder.
  4. Then type the following command.

      adb install [apk file name]
    

    Example:

      adb install gaurav.apk
    
GOLDEE
  • 2,318
  • 3
  • 25
  • 49
2

Go to ADT Bundle->SDK -> Platform Tools -> paste the .apk file.

Command Prompt:

adb install filename.apk

Eg:

eg

1

Well you can have a look at these tutorials if you are not able to do it the way Stephane said it. Install Tutorial Uninstall Tutorial Hope it will help you as a beginner..tc

DeAviator
  • 29
  • 1
  • 4
1

Run emulator -> drag and drop yourApp.apk into emulator screen. Works in android studio.Credit goes to this answer.

Rasel
  • 5,488
  • 3
  • 30
  • 39