13

I like to quickly start hierarchyviewer. At the moment i use the prompt to go navigate to .... \AppData\local\android\android-sdk\tools\ and then hierarchyviewer

I think i need to add something to windows 7 path, but i don't know what to do exactly.

Any suggestions?

regards

alex
  • 4,804
  • 14
  • 51
  • 86

3 Answers3

22

Suppose you have download and install Android SDK, and extract it in some drive. There are two methods to set PATH:

Use command prompt :

set path=%path%;D:\android-sdk-windows\tools;

Another is follow these steps :

My Computer->Property->Advanced->Environment Variables->Edit Path Variable and add “D:\ android-sdk-windows\tools” into the Path Variables.
Anup Cowkur
  • 20,443
  • 6
  • 51
  • 84
  • 7
    It is a good idea to also add the `platform-tools` folder to your path. – Rudey Apr 14 '14 at 20:11
  • If you already have Android Studio installed and just looking where did it install the SDK for you, here's where it was on my machine: `%HOMEDRIVE%%HOMEPATH%\AppData\Local\Android\sdk`. So the command above would look like `set path=%path%;%HOMEDRIVE%%HOMEPATH%\AppData\Local\Android\sdk\tools;` – Nikita R. Jun 16 '15 at 20:21
  • 1
    Do not forget about the ";" when doing the "Another is..." section. – Bowi Oct 13 '16 at 07:54
2

In your computer properties-advance-environment variables-system variable ,and you find variable "path", add your android/tools path in it.

The operate like add java.exe in you computer path

CarlWang
  • 21
  • 2
  • 1
    If the SDK lies at your personal `AppData`, it might be a better idea to add the path to the _User_ Environment Variable instead of the _System_ Environment Variable. – Bowi Oct 13 '16 at 08:27
0
C:\Users\user\AppData\Local\Android\Sdk\tools\bin

and add it you your Path User variable

Kejsi Struga
  • 550
  • 6
  • 21