I am trying to run google map v2 on emulator, I am following this tutorial. When I was trying to install required apk file on emulator, I am getting below error.
I tried to solve this using this tutorial.Followed all steps, added the path to paltform-tools to environment path. Also after modifying the PATH variable started a new CommandPrompt window.
But getting the same error. I need to check my google map application on emulator. Kindly suggest me.
'adb' is not recognized as an internal or external command,
operable program or batch file.
In Windows 10,
%USERPROFILE%\AppData\Local\Android\sdk\platform-tools
.cmd
(if any open).adb devices
, it should list, if it does, you are all set.That's it!
Add your path into environment variable "PATH" where you installed your sdk with below:
You can in image below for example:
and reopen your command prompt to see changes.
I had same problem when I define PATH below
and the problem solved when I bring adb root at first.
just open Android studio and press "Tools" on Top navigation bar
Where you can get SDK location
Open
SDK folder -> platform-tools
Set the path of adb into System Variables. You can find adb in "ADT Bundle/sdk/platform-tools" Set the path and restart the cmd n then try again.
Or
You can also goto the dir where adb.exe is located and do the same thing if you don't wanna set the PATH.
If you wanna see all the paths, just do
If you want to use it every time add the path of adb to your system variables: enter to cmd (command prompt) and write the following:
this command will show you what it was before you will add adb path
be careful the path that you want to add if it contains double quote
after you restart your cmd rewrite:
you will find that the path is added
PS: if you just want to add the path to cmd just to this session you can use: