Error: Command failed: platform-tools/adb -s DEVICEID shell getprop
Error: Command failed: platform-tools/adb -s DEVICEID shell getprop
我正在使用 Ionic 4、Cordova 9、Nodejs 10.16、npm 6.9,我想 运行 我的设备上的应用程序。
我刚刚将 Android Studio 重新安装到最新版本,但在使用 运行 命令时出现错误:
命令
ionic cordova run android --device
错误(DEVICEID - 我的设备 ID)
Error: Command failed: P:\Simplifiedpath\platform-tools/adb -s DEVICEID shell getprop
当使用 --verbose 时,我得到了那些细节:
ionic:lib:shell Error in subprocess stdout pipe: Error [ERR_STREAM_WRITE_AFTER_END]: write after end at writeAfterEnd (_stream_writable.js:248:12) at Object.Writable.write (_stream_writable.js:296:5) at Readable.write (C:\Simplifiedpath\npm\node_modules\ionic\node_modules\stream-combiner2\node_modules\readable-stream\lib\_stream_readable.js:85
这个错误有什么意义?
更新 sdk/platform-tools 到版本 29 后,我有同样的错误,解决:
打开 Android Studio,然后转到 "SDK Tools" 选项卡上的文件>设置>Android SDK 并取消选中
"Android SDK Platform-Tools 29" 然后点击 "Apply" 卸载 platform-tools
然后。从这里下载 platform-tools 28 link
https://dl.google.com/android/repository/platform-tools_r28.0.0-windows.zip
在sdk目录下解压"platform-tools",例如:"C:\Users\User\AppData\Local\Android\sdk"
检查是否正常,请查看文件>设置>Android SDK "SDK Tools" 选项卡,现在看起来像图像
我正在使用 Ionic 4、Cordova 9、Nodejs 10.16、npm 6.9,我想 运行 我的设备上的应用程序。 我刚刚将 Android Studio 重新安装到最新版本,但在使用 运行 命令时出现错误:
命令
ionic cordova run android --device
错误(DEVICEID - 我的设备 ID)
Error: Command failed: P:\Simplifiedpath\platform-tools/adb -s DEVICEID shell getprop
当使用 --verbose 时,我得到了那些细节:
ionic:lib:shell Error in subprocess stdout pipe: Error [ERR_STREAM_WRITE_AFTER_END]: write after end at writeAfterEnd (_stream_writable.js:248:12) at Object.Writable.write (_stream_writable.js:296:5) at Readable.write (C:\Simplifiedpath\npm\node_modules\ionic\node_modules\stream-combiner2\node_modules\readable-stream\lib\_stream_readable.js:85
这个错误有什么意义?
更新 sdk/platform-tools 到版本 29 后,我有同样的错误,解决:
打开 Android Studio,然后转到 "SDK Tools" 选项卡上的文件>设置>Android SDK 并取消选中 "Android SDK Platform-Tools 29" 然后点击 "Apply" 卸载 platform-tools
然后。从这里下载 platform-tools 28 link https://dl.google.com/android/repository/platform-tools_r28.0.0-windows.zip 在sdk目录下解压"platform-tools",例如:"C:\Users\User\AppData\Local\Android\sdk"
检查是否正常,请查看文件>设置>Android SDK "SDK Tools" 选项卡,现在看起来像图像