Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing apk , adb command not found

Tags:

android

apk

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

like image 902
William Kinaan Avatar asked Jun 30 '12 08:06

William Kinaan


People also ask

How do I fix the adb command not found?

Case 2: If adb is present This generally occurs if the platform-tools are not installed properly. Reinstalling the platform tools might fix this problem. Open Android Studio, click SDK Manager in the toolbar or click Tools > SDK Manager, click SDK Tools, then uncheck Android-SDK Platform-Tools (as shown above).

How do I enable adb commands?

Open a command window in the folder by holding shift and right-clicking in an empty spot in the folder and selecting "Open command prompt/PowerShell here" in the menu. Then you can start using ADB — connect your phone and try . ADB devices to see if it's working. A list with attached devices should show up.

How do I run adb from Command Prompt?

Appearance & Behaviour --> System Settings --> Android SDK You can get the path where SDK is installed and can edit the location as well. Show activity on this post. Type adb shell. Now able to access adb and the db.

How do I enable adb on Android?

Enable adb debugging on your device To make it visible, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options at the bottom. On some devices, the Developer options screen might be located or named differently. You can now connect your device with USB.


2 Answers

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
like image 122
Bobs Avatar answered Oct 27 '22 21:10

Bobs


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"
like image 24
Pargat Avatar answered Oct 27 '22 21:10

Pargat