for file in apk/*;
do
./adb install $file;
done
如果是找不到adb , 就先在Terminal打下面的code, 把android studio sdk 先加到PATH就可以了。
If you've already installed Android Studio --
Add the following lines to the end of ~/.bashrc
or ~/.zshrc
(if using Oh My ZSH):
export ANDROID_HOME=/Users/$USER/Library/Android/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
Restart Terminal and you're good to go.
留言列表