Android

I am trying lớn run google bản đồ v2 on emulator, I am following this tutorial.When I was trying to lớn install required android file on emulator, I am getting below error.

Bạn đang xem: Android

I tried khổng lồ solve sầu this using this tutorial.Followed all steps, added the path to paltform-tools to lớn environment path. Also after modifying the PATH variable started a new CommandPrompt window.

But getting the same error. I need to kiểm tra my google map application on emulator.Kindly suggest me.

"adb" is not recognized as an internal or external commvà,operable program or batch file.

*


android batch-file adb
Share
Improve sầu this question
Follow
edited Mar 14 "18 at 17:01
*

CopsOnRoad
97.1k2626 gold badges329329 silver badges232232 bronze badges
asked Dec 13 "13 at 10:43
*

Nibha JainNibha Jain
5,9221010 gold badges3939 silver badges6363 bronze badges
2
Add a comment |

25 Answers 25


Active sầu Oldest Votes
287
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 lớn the dir where adb.exe pháo is located and bởi the same thing if you don"t wanmãng cầu set the PATH.

If you wanna see all the paths, just do

emang đến %PATH%
Share
Improve sầu this answer
Follow
edited Jun 25 "16 at 12:02
answered Dec 13 "13 at 10:47

*

Jatin MalwalJatin Malwal
4,28922 gold badges20trăng tròn silver badges2626 bronze badges
6
| Show 1 more comments
173
From Android Studio 1.3, the ADB location is at:

C:UsersUSERNAMEAppDataLocalAndroidsdkplatform-tools.Now add this location to lớn the end of PATH of environment variables. Eg:

;C:UsersUSERNAMEAppDataLocalAndroidsdkplatform-tools
Share
Improve sầu this answer
Follow
edited May 14 "đôi mươi at 1:59
answered Aug 1 "15 at 9:44

*

Vamsi TallapudiVamsi Tallapudi
2,07511 gold badge1111 silver badges1919 bronze badges
3
Add a phản hồi |
136
If you want khổng lồ use it every time add the path of adb khổng lồ your system variables:enter khổng lồ cmd (comm& prompt) & write the following:

echo %PATH%this command will show you what it was before you will add adb path

setx PATH "%PATH%;C:Program Filesandroid-sdk-windowsplatform-tools"be careful the path that you want khổng lồ add if it contains double quote

after you restart your cmd rewrite:

echo %PATH%you will find that the path is added

PS: if you just want khổng lồ add the path to lớn cmd just lớn this session you can use:

phối PATH=%PATH%;C:Program Filesandroid-sdk-windowsplatform-tools
Share
Improve sầu this answer
Follow
answered Jan 17 "14 at 12:17

*

Chris SimChris Sim
3,50433 gold badges2525 silver badges3232 bronze badges
5
Add a phản hồi |
80
I did this on Windows 7, by going to:

Start > Control Panel > System > Advanced System Settings > Environment Variables...

In this Environment Variables window, in the User variables for (your-username) highlight Path và cliông xã Edit...

You then need to lớn appkết thúc a ; if there isn"t already one at the over of the Variable value field, và then appkết thúc C:Users\AppDataLocalAndroidsdkplatform-tools; to that same field.

Then cliông xã the three OK buttons to get out.

If you already have a Comm& Prompt window open, cchiến bại it then re-open & the adb devices command should then work.

Xem thêm: Không Dùng Được Phím Fn Asus, Cách Bật / Tắt Phím Chức Năng Fn + F1, F2, F3,


Share
Improve this answer
Follow
answered Jun 13 "17 at 15:26
ban-geoengineeringban-geoengineering
15.1k1616 gold badges137137 silver badges221221 bronze badges
2
Add a phản hồi |
34
In Windows 10,

Add User Variable PATH: %USERPROFILE%AppDataLocalAndroidsdkplatform-tools.Restart cmd (if any open).adb devices, it should danh mục, if it does, you are all phối.

That"s it!


Share
Improve sầu this answer
Follow
edited Mar 18 "18 at 5:22
Machavị
4,51044 gold badges3131 silver badges4444 bronze badges
answered Mar 6 "18 at 18:22
m9m9mm9m9m
1,0811515 silver badges2323 bronze badges
3
Add a comment |
29
Follow path of you platkhung tools thư mục in android cài đặt thư mục where you will found adb.exe cộ

D:SoftwareAndroidAndroidandroid-sdkplatform-tools

Check the screenshot for details

*


Share
Improve this answer
Follow
edited Dec 13 "13 at 11:38
answered Dec 13 "13 at 10:57
Vaibhav AgarwalVaibhav Agarwal
4,08422 gold badges1616 silver badges20trăng tròn bronze badges
1
Add a phản hồi |
27
Add your path inkhổng lồ environment variable "PATH" where you installed your sdk with below:

Sdkplatform-toolsYou can in image below for example:

*

& reopen your commvà prompt to lớn see changes.


Share
Improve this answer
Follow
answered Atruyền thông quảng cáo 1 "18 at 8:32
gauravbnhì daxinigauravbnhị daxini
1,45111 gold badge1717 silver badges2626 bronze badges
1
Add a comment |
11
adb command can be under the new path below-C:UsersUSERNAMEAppDataLocalAndroidsdkplatform-toolsfor new versions of Android studio.I found in this location for me.


Share
Improve sầu this answer
Follow
answered Dec 14 "16 at 9:30
Amit RayAmit Ray
11111 silver badge22 bronze badges
Add a bình luận |
11
If your OS is Windows, then it is very simple.When you install Android Studio, adb.exe cộ is located in the following folder:

C:Users**your-user-name**AppDataLocalAndroidSdkplatform-toolsCopy the path and paste in your environment variables.

mở cửa your terminal and type: adb it"s done!


Share
Improve sầu this answer
Follow
edited Sep 30 "19 at 10:05
Krushi Raj
31811 gold badge33 silver badges1313 bronze badges
answered May 26 "19 at 20:29
Williaan LopesWilliaan Lopes
50666 silver badges77 bronze badges
Add a phản hồi |
7
just open Android studio and press "Tools" on Top navigation bar

tools->SDK ManagerWhere you can get SDK location

xuất hiện SDK folder -> platform-tools


Share
Improve this answer
Follow
edited Oct 15 "18 at 9:52
answered Oct 12 "18 at 9:06
Pullat JunaidPullat Junaid
2,1941616 silver badges20đôi mươi bronze badges
Add a phản hồi |
7
*

For environment variable, we have khổng lồ need khổng lồ follow some steps.


Share
Improve sầu this answer
Follow
answered Feb 8 "19 at 9:54
Parveen ChauhanParveen Chauhan
1,0281111 silver badges2222 bronze badges
Add a bình luận |
5
1st: goto the drive sầu where your eclipse reside and gokhổng lồ sdk và platform tool in my case C:adt-bundle-windows-x86_64-20140702sdkplatform-tools

2nd:copy that address for ease of access

*

3:open comm& prompt win+r and type cmd hit enter

4:paste the address in cmd và hit enter thats all

*


Share
Improve sầu this answer
Follow
answered Jun 30 "15 at 3:29
AdiiiAdiii
33.8k55 gold badges7979 silver badges8181 bronze badges
Add a bình luận |
4
Based on Vamsay mê Tallapudis earlier answer I came up with this dynamic path:

%LOCALAPPDATA%/Androidsdkplatform-toolsIt"s using a Windows Environment Variables. I find this solution khổng lồ be both elegant & easy và would therefor like to chia sẻ it.


Share
Improve sầu this answer
Follow
edited May 23 "17 at 12:02
Community♦
111 silver badge
answered Jul 9 "16 at 12:05
TimTyên ổn
9671212 silver badges2222 bronze badges
Add a comment |
2
I had same problem when I define PATH below

C:Program Files (x86)Javajre1.8.0_45in;C:devsdkandroidplatform-tools& the problem solved when I bring adb root at first.

C:devsdkandroidplatform-tools;C:Program Files (x86)Javajre1.8.0_45in
Share
Improve sầu this answer
Follow
edited Feb 9 "16 at 13:17
Shree Krishna
7,81366 gold badges3333 silver badges6666 bronze badges
answered Feb 9 "16 at 12:39
user5903234user5903234
3111 bronze badge
Add a bình luận |
2
This answer assumes that the PATH has been correctly mix as described in the other answers

If you"re on Windows 10 & dont have sầu Admin rights then right clichồng on the CMD, powershell ... program & select run as administrator. Then try adb


Share
Improve this answer
Follow
answered Jan 16 "19 at 14:03
beaumondobeaumonvì
4,32977 gold badges2626 silver badges3939 bronze badges
Add a bình luận |
1
First select drive sầu that is where Android sdk folder is there. Then you Follow the below steps

cd DriveName:/ or Ex : cd c:/ Press "Enter"

then you will give the path that is adb console path is there in a platform-tools folderso cd Root Folder/inner root thư mục if there/Platform-tools Press "Enter" then it selects the adb directory.


Share
Improve sầu this answer
Follow
answered Dec 13 "13 at 11:08
VenkatVenkat
8211313 silver badges3131 bronze badges
Add a bình luận |
1
In my case it was:

C:Program Files (x86)Androidandroid-sdkplatform-tools
Share
Improve this answer
Follow
answered May 24 "16 at 12:40
DoradDorad
2,47211 gold badge3232 silver badges5656 bronze badges
Add a phản hồi |
1
This is where I found it:

C:Users\AppDataLocalAndroidsdkplatform-toolsI had khổng lồ put the complete path inkhổng lồ the tệp tin explorer. I couldn"t just clichồng down to lớn it because the directories are hidden.

I found this path listed in Android studio:

Tools > Android > SDK Manager > SDK Tools


Share
Improve this answer
Follow
answered Aug 9 "16 at 12:26
user984003user984003
23.3k5050 gold badges158158 silver badges248248 bronze badges
Add a comment |
1
If you didn"t mix a path for ADB, you can run .adb instead of adb at sdk/platformtools.


Share
Improve sầu this answer
Follow
answered Aug 8 "19 at 13:39
Mohammad MeshkaniMohammad Meshkani
1,1181212 silver badges2525 bronze badges
Add a comment |
1
I recommand you using PowerShell

Set Android Studio Terminal to PowerShell:

Settings > Tools > Terminal > Shell path = pwsh.exe cộ (instead of cmd.exe)Open Terminal on Android Studio

# `pikachu` should be replace your usernamePS > test-path "C:UserspikachuAppDataLocalAndroidsdkplatform-tools"Truemở cửa your powershell profile tệp tin in your text editor

PS > notepad $profileadd below line, save sầu and exit

# `pikachu` should be replaced with your username$env:PATH+="C:UserspikachuAppDataLocalAndroidsdkplatform-tools"re-open Terminal & try adb

PS > adbAndroid Debug Bridge version 1.0.41Version 30.0.1-6435776Installed as C:UsershdformatAppDataLocalAndroidsdkplatform-toolsadb.exeglobal options: -a listen on all network interfaces, not just localhost -d use USB device (error if multiple devices connected) -e use TCP/IP device (error if multiple TCP/IP devices available) -s SERIAL use device with given serial (overrides $ANDROID_SERIAL) -t ID use device with given transport id -H name of adb server host -Phường port of adb hệ thống