首页 > shell 脚本运行报错device not found

shell 脚本运行报错device not found

! /system/bin/sh

echo "start MainActivity"
adb shell am start -n "com.example.aaaaa/.MainActivity"
adb shell sleep 10
echo "kkkkstart MainActivity"
adb shell am force-stop"com.example.aaaaa"
除了echo的那两条语句 其它语句执行的时候都是报错device not found 这是怎么回事啊 不通过脚本 直接去adb shell里面执行am start 和am force-stop是可以执行的 eclipse就连了一个一个机子

【热门文章】
【热门文章】