我需要运行一个adb前进命令之前,我可以使用ezkeyboard应用程序,允许用户使用浏览器在手机上输入。
当我运行adb forward tcp:8080 tcp:8080命令时,我得到adb命令not found错误消息。
我可以从终端运行android命令。为什么亚洲开发银行没有发挥作用?
我需要运行一个adb前进命令之前,我可以使用ezkeyboard应用程序,允许用户使用浏览器在手机上输入。
当我运行adb forward tcp:8080 tcp:8080命令时,我得到adb命令not found错误消息。
我可以从终端运行android命令。为什么亚洲开发银行没有发挥作用?
当前回答
确保安装了adb 要安装它,你可以运行“sudo apt install adb”。 您还可以尝试撤销设备上的任何USB授权 尝试打开USB调试连接。
其他回答
在我的Mac (OS X 10.8.5)上,我在这里有adb:
~/Library/android-sdk-mac_86/platform-tools
因此,在.bash_profile中编辑$PATH并对其进行源化。
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.
为了避免每次启动终端时重写$PATH变量,请在主目录(~/)下编辑.bash_profile(对于mac,它只是.profile)文件,并将导出语句放置在文件中的某个位置。
现在每次你启动终端,你的$PATH变量将被正确更新。要在修改概要文件后立即更新终端环境,请输入:
source ~/.profile
对我来说,这就是这个问题的解决方法
确保您已经安装了android SDK。通常是SDK的位置 位于这个位置 /用户/用户/图书馆/ Android sdk 然后cd到那个目录。 进入该目录后,键入以下命令 ./platform-tools/adb安装你的位置apk
我使用的是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