'adb' is not recognized as an internal or

2019-01-02 20:26发布

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.

enter image description here

17条回答
还给你的自由
2楼-- · 2019-01-02 20:32

This is where I found it:

C:\Users\<USER>\AppData\Local\Android\sdk\platform-tools

I had to put the complete path into the file explorer. I couldn't just click down to it because the directories are hidden.

I found this path listed in Android studio:

Tools > Android > SDK Manager > SDK Tools

查看更多
浮光初槿花落
3楼-- · 2019-01-02 20:37

In my case it was:

C:\Program Files (x86)\Android\android-sdk\platform-tools
查看更多
无色无味的生活
4楼-- · 2019-01-02 20:38

The New Android Studio 1.3 has its ADB location at:

C:\Users\USERNAME\AppData\Local\Android\sdk\platform-tools.

Now add this location to the end of PATH of environment variables. Eg:

;C:\Users\USERNAME\AppData\Local\Android\sdk\platform-tools
查看更多
无与为乐者.
5楼-- · 2019-01-02 20:39

You could just drag the adb.exe on to the command prompt from sdk/platformtools and leave a space and type the command you want: like logcat.

It looks like this for me:

C:\adt-bundle-windows-x86-20130917\adt-bundle-windows-x86-20130917\sdk\platform-tools.exe logcat

and hit enter.

查看更多
若你有天会懂
6楼-- · 2019-01-02 20:42

First select drive 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 folder so cd Root Folder/inner root folder if there/Platform-tools Press 'Enter' then it selects the adb directory.

查看更多
零度萤火
7楼-- · 2019-01-02 20:45

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 and click Edit...

You then need to append a ; if there isn't already one at the end of the Variable value field, and then append C:\Users\<your-username>\AppData\Local\Android\sdk\platform-tools; to that same field.

Then click the three OK buttons to get out.

If you already have a Command Prompt window open, close it then re-open and the adb devices command should then work.

查看更多
登录 后发表回答