开发者

Run ADB command using android program

开发者 https://www.devze.com 2023-03-01 05:41 出处:网络
I used Runtime runtime = Runtime.getRuntime(); Process process = runtime.exec(\"C:\\\\Android\\\\android-sdk-windows\\\\platform-tools\\\\adb.exe forward tcp:7777 tcp:7777\");

I used

Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("C:\\Android\\android-sdk-windows\\platform-tools\\adb.exe forward tcp:7777 tcp:7777");

for port forwarding in adb using android program. But it shows

 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

what is the p开发者_Go百科roblem about the code?? Anyone can help me please..........

0

精彩评论

暂无评论...
验证码 换一张
取 消