我无法在UI Automator中运行adb命令。当我使用以下命令运行adb命令时
Runtime r=Runtime.getRuntime().exec("adb devices");
我得到以下错误:
Error executing exec: Command:(adb services), Working Directory null, environment=null
我真的需要在我的UI Automator中运行adb命令
提前感谢
发布于 2013-09-19 14:42:11
UIAutomater脚本在设备外壳中运行,而不是在系统终端中。尝试修改要在设备外壳中执行的命令。
https://stackoverflow.com/questions/14098009
复制相似问题