我需要运行一个adb前进命令之前,我可以使用ezkeyboard应用程序,允许用户使用浏览器在手机上输入。
当我运行adb forward tcp:8080 tcp:8080命令时,我得到adb命令not found错误消息。
我可以从终端运行android命令。为什么亚洲开发银行没有发挥作用?
我需要运行一个adb前进命令之前,我可以使用ezkeyboard应用程序,允许用户使用浏览器在手机上输入。
当我运行adb forward tcp:8080 tcp:8080命令时,我得到adb命令not found错误消息。
我可以从终端运行android命令。为什么亚洲开发银行没有发挥作用?
当前回答
这是最简单的方法,将提供自动更新。
安装自酿酒 /bin/bash -c $(curl - ssl https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 安装亚行 Brew install -cask android-platform-tools 开始使用adb 亚洲开发银行设备
其他回答
在我的Mac (OS X 10.8.5)上,我在这里有adb:
~/Library/android-sdk-mac_86/platform-tools
因此,在.bash_profile中编辑$PATH并对其进行源化。
确保adb在用户的$PATH变量中。
or
您可以尝试使用whereis定位它,并使用./adb运行它
UNABLE TO LOCATE ADB #SOLVED Simply Download Sdk platform tools.https://developer.android.com/studio/releases/platform-tools.html Extract the Downloaded file. Go to Sdk Manager in Android Studio and copy the link. Go to file Explorer and paste the path for Sdk you copied to view the Sdk files. You will notice that the Adb file is missing, open downloaded file (platform tools) copy contents and replace every content in your Sdk tool file (the file where you noticed adb is missing)and save. You are good to go.
如果你用的是鱼: fish_add_path /用户/ <名称> /图书馆/ Android / sdk /平台工具 或者也可以在~/.config/fish/config.fish中添加相同的参数 可能需要重新启动shell
我使用的是Mac 10.11.1和android studio 1.5, 我有adb “/用户/用户名/图书馆/ Android / sdk /平台工具”
现在编辑bash_profile
emacs ~/.bash_profile
将这一行添加到bash_profile中,并将user-name替换为您的用户名
export PATH="$PATH:/Users/user-name/Library/Android/sdk/platform-tools"
保存并关闭。 运行此命令重新加载bash_profile
source ~/.bash_profile