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. 

 

文章標籤
創作者介紹

呆子獅的夢想世界

lionlionchopper 發表在 痞客邦 PIXNET 留言(0) 人氣()