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.
For those using macOS, this osxdaily.com article shows several ways to add
adb
to the $PATH.Here's the one I prefer:
Add a file named
adb
to/etc/paths.d/
folder that just contains the path to adb's location:/Users/YourUserName/Library/Android/sdk/platform-tools/
In a Terminal window,
sudo vim /etc/paths.d/adb
-> enter the path and save the file.
Close/re-open Terminal in order for it to see the change.
adb command can be under the new path below- C:\Users\USERNAME\AppData\Local\Android\sdk\platform-tools for new versions of Android studio. I found in this location for me.
Based on Vamsi Tallapudis earlier answer I came up with this dynamic path:
It's using a Windows Environment Variables. I find this solution to be both elegant and easy and would therefor like to share it.
1st: goto the drive where your eclipse reside and goto sdk and platform tool in my case C:\adt-bundle-windows-x86_64-20140702\sdk\platform-tools
2nd:copy that address for ease of access
3:open command prompt win+r and type cmd hit enter
4:paste the address in cmd and hit enter thats all
Follow path of you platform tools folder in android setup folder where you will found adb.exe
D:\Software\Android\Android\android-sdk\platform-tools
Check the screenshot for details