AndroidStudio: always run on all connected devices
How can I configure AndroidStudio such that the app is run on all connected devices without further inquiry even when I constantly plug in new devices / remove old ones?
Please note that this requires a slightly different approach than this solution, since with their procedure the device selection dialog appears again if you
or
I found a bash script that has been working well for me for quite sometime:
adb devices | while read line
do
if [ ! "$line" = "" ] && [ `echo $line | awk '{print $2}'` = "device" ]
then
device=`echo $line | awk '{print $1}'`
echo "$device $@ ..."
adb -s $device $@
fi
done
All credits go the github user ' christopherperry '. For more info check this link:
https://gist.github.com/christopherperry/3208109
Hope this helps.
The answer is pretty much same as the solution. The only thing to be done is "check" the checkbox that says "Always use the same device for future launches" As highlighted in the image
Be sure to select all devices before you click run, for the first time.
It's easy to run all connected device every time. Just Select all connected device while Android Studio shows Select Deployment Target & Select "Use same selection for future launches".
NB Remember all devices run sequentially one by one.
链接地址: http://www.djcxy.com/p/26346.html上一篇: ANTLR4和Python目标