如何在Mac终端上运行adb? [英] How do I run adb on a mac terminal?
本文介绍了如何在Mac终端上运行adb?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
adb shell run-as /data/data/com.mypackagename
返回
找不到adb命令
adb command not found
尽管我在目录(/Users/me/Library/Android/sdk/platform-tools
)中看到了adb
though I see adb in the directory (/Users/me/Library/Android/sdk/platform-tools
)
推荐答案
您只需要将此路径添加到bash配置文件中并获取它的来源:
You just need to add this path to your bash profile and source it:
echo 'export PATH=$PATH:~/Library/Android/sdk/platform-tools/' >> ~/.bash_profile
source ~/.bash_profile
adb devices
这篇关于如何在Mac终端上运行adb?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文