1、Mac下adb配置
① brew安裝
在終端中輸入
brew cask install android-platform-tools
② 使用Android studio自帶adb進行安裝(推薦!!!)
1????touch .bash_profile
2????open -e .bash_profile
在打開的.bash_profile文件中加入如下兩行:
export PATH=${PATH}:~/Library/Android/sdk/platform-tools
export PATH=${PATH}:~/Library/Android/sdk/tools
編輯.bash_profile文件
在終端輸入adb檢查是否配置成功
配置成功
二、Macbook中Android studio中使用夜神模擬器
終端中輸入安裝位置
cd /Applications/Nox\ App\ Player.app/Contents/MacOS?
連接
adb connect 127.0.0.1:62001
等待顯示:
connected to 127.0.0.1:62001
連接成功
大功告成!!!