Reputation: 28819
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
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
Reputation: 10825
For Mac - add next line to bash/zsh config file:
export PATH="$HOME/Library/Android/sdk/platform-tools:$PATH"
Upvotes: 0
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
Reputation: 3264
For Mac Users
Go to the /Users/your-user-name/Library/Android/sdk/platform-tools
directory
./adb your-command (Ex: ./adb devices )
Upvotes: 1
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
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
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
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
Reputation: 31456
add
C:\Android\android-sdk\platform-tools
and
C:\Android\android-sdk\platform-tools
to your Path Environment Variables
Upvotes: 0
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
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