我想使用 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”之间有空间问题吗?
如何在命令中添加空格?