【发布时间】:2012-10-10 07:25:34
【问题描述】:
我想使用 Java 执行“adb”命令。 我尝试如下:
Process p = Runtime.getRuntime().exec(new String[]{"cmd","/c","adb devices"});
但是,我收到以下错误 p.getErrorStream():
'adb' is not recognized as an internal or external command,operable program or batch file.
“adb devices”之间有没有空间问题?
如何在命令中添加空格?
【问题讨论】:
标签: java android runtime.exec