我用过
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("C:\\Android\\android-sdk-windows\\platform-tools\\adb.exe forward tcp:7777 tcp:7777");
使用android程序在adb中进行端口转发。但它显示
Exception :: java.io.IOException: Error running exec(). Commands: [C:\Android\android-sdk-windows\platform-tools\adb.exe, forward, tcp:7777, tcp:7777] Working Directory: null Environment: null
代码有什么问题?任何人都可以帮助我..........