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