科尔多瓦错误:无法在设备上执行外壳命令“ cat,/ proc / cpuinfo”

时间:2019-06-10 19:38:13

标签: android adb

我正在尝试使用cordova(可在我的笔记本电脑上使用)编程一个android应用,但是对于命令“ adb -s shell cat / proc / cpuinfo”却收到此错误

我已经尝试过重新安装Android Studio和Cordova,但无济于事。有趣的是,当我自己在控制台中尝试该命令时,该命令实际上有效。只是科尔多瓦似乎有问题

错误输出:<path> =我的路径,<device> =设备

Running adb shell command "cat /proc/cpuinfo" on target <device>...
Running command: adb -s <device> shell cat /proc/cpuinfo
Command finished with error code 3221226356: adb -s,<device>,shell,cat,/proc/cpuinfo
Failed to execute shell command "cat,/proc/cpuinfo"" on device: Error: adb: Command failed with exit code 3221226356
CordovaError: Failed to execute shell command "cat,/proc/cpuinfo"" on device: Error: adb: Command failed with exit code 3221226356
at Z:<path>\platforms\android\cordova\lib\Adb.js:88:2
at _rejected (Z:<path>\node_modules\q\q.js:864:24)
at Z:<path>\node_modules\q\q.js:890:30
at Promise.when (Z:<path>\node_modules\q\q.js:1142:31)
at Promise.promise.promiseDispatch (Z:<path>\node_modules\q\q.js:808:41)
at Z:<path>\node_modules\q\q.js:624:44
at runSingle (Z:<path>\node_modules\q\q.js:137:13)
at flush (Z:<path>\node_modules\q\q.js:125:13)
at process._tickCallback (internal/process/next_tick.js:61:11)

就像我说的那样,当我将命令粘贴到控制台中时,该命令是完全可执行的,但是由于某种原因,cordova遇到了问题。我不知道是否是因为我有一个AMD CPU(在我的笔记本电脑上有Intel)。在“ cordova”和“ Android Studio”的安装过程中,我以相同的方式进行了所有操作,它应该像在笔记本电脑上一样工作:在智能手机上部署该应用程序,然后通过USB将其连接到PC。

0 个答案:

没有答案