William Kinaan
William Kinaan

Reputation: 28819

Installing apk , adb command not found

I want to install apk on my emulator, I found this page how to install apk and This thread

and my problem is when I type adb in my command line I got this:

'adb' is not recognized as an internal or external commands

i set the path on windows advance, the path is the tool director in my sdk directory, I mean the path I set is C:\Program Files (x86)\Android\android-sdk\tools, I am working on windows 7

Upvotes: 9

Views: 53382

Answers (11)

Leo
Leo

Reputation: 10833

In my case, I had %LOCALAPPDATA%\Android\Sdk\platform-tools in my System Path with no luck.

I moved it to my User Path and it worked perfectly.

P.S. I personally use https://rix0rrr.github.io/WindowsPathEditor/, very straight forward and clean.

Upvotes: 0

Alexander Kireyev
Alexander Kireyev

Reputation: 10825

For Mac - add next line to bash/zsh config file:

export PATH="$HOME/Library/Android/sdk/platform-tools:$PATH"

Upvotes: 0

Danieldms
Danieldms

Reputation: 1026

For me it's work perfect

Go to folder android installation Go to platform-tools and try the below command

./adb reverse tcp:8081 tcp:8081

after Running your app

Upvotes: 0

Aathi
Aathi

Reputation: 3264

For Mac Users

  1. Go to the /Users/your-user-name/Library/Android/sdk/platform-tools directory

  2. ./adb your-command (Ex: ./adb devices )

Upvotes: 1

Kirtikumar A.
Kirtikumar A.

Reputation: 4204

Start terminal and write below command

For MAC

./adb kill-server
./adb start-server

For Windows

adb kill-server
adb start-server

Upvotes: 0

Bob
Bob

Reputation: 23010

First add your Android SDK path like "C:\Android\android-sdk\platform-tools" to your OS path

Second use this command to restart adb:

adb kill-server
adb start-server

Upvotes: 20

Khan
Khan

Reputation: 7605

1 Step If u have multiple emulator than close all emulator and open emulator by Window--> AVD Manger --> and select any one emulator on which u want to install apk and start that emulator by clicking on Strat

2 Step Open Command Promot and enter path upto folder Platform-tools of android sdk somethiing like cd C:\Program Files (x86)\Android\android-sdk\platform-tools if 64 bit other wise C:\Program Files\Android\android-sdk\platform-tools

3 Step adb install Path Upto ur apk means path in which folder u have put apk Example adb install C:\User\Download\facebook.apk

Upvotes: 3

Ankitkumar Makwana
Ankitkumar Makwana

Reputation: 3485

you can pull apk without command, step 1 select ddms view in editor step 2 select emulator or device step 3 select Fle Explorer step 4 select sdcard and there right corner push amd pull option with device icon here select push option and choose your apk location and push it step 5 now you can see your apk installed in Emulator or in device

Upvotes: 0

K_Anas
K_Anas

Reputation: 31456

add

C:\Android\android-sdk\platform-tools

and

C:\Android\android-sdk\platform-tools

to your Path Environment Variables

Upvotes: 0

Pargat
Pargat

Reputation: 769

Try this

First chage your current directory to platform-tools

cd C:\Program Files\Android\android-sdk\platform-tools

Then install your apk on emulator

adb install "<Path to your apk file>"

for example

adb install "c:\Apps\abc.apk"

Upvotes: 2

RPB
RPB

Reputation: 16340

Try changing it to

From

C:\Program Files (x86)\Android\android-sdk\tools

To

C:\Program Files (x86)\Android\android-sdk\platform-tools

If doesn't work then you mught need to restart you system too.

Upvotes: 0

Related Questions