antonpug
antonpug

Reputation: 14286

How can I install an android app to the emulator?

When using the adb install MyTestApp.apk command I get:

Can't find MyTestApp.apk to install

What's the matter?

Upvotes: 0

Views: 124

Answers (2)

Yury
Yury

Reputation: 20936

You have three different directories:

  1. Current directory (it is shown as invitation parameter if you're working with ubuntu)
  2. Directory where your MyTestApp.apk is situated.
  3. Directory where adb command executable is situated (for instance, platform-tools).

In general you have to run the command adb install in the following way:

/path_to_the_3_dir/adb install /path_to_2_dir/MyTestApp.apk

So as /path_to_the_3_dir/ is included into PATH variable you do not need to specify the whole path. You can simply call adb install.

To make things easier you can change your current directory to the directory where your apk file located (using cd command) and call simply adb install MyTestApp.apk

Upvotes: 0

Zack Marrapese
Zack Marrapese

Reputation: 12090

I'm guessing that the APK you want to install isn't in your current directory? Try adb install ./another/directory/MyTestApp.apk

Upvotes: 1

Related Questions