【问题标题】:Error: Command failed: platform-tools/adb -s DEVICEID shell getprop错误:命令失败:platform-tools/adb -s DEVICEID shell getprop
【发布时间】:2019-10-21 23:43:58
【问题描述】:

我正在使用 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

这个错误有什么意义?

【问题讨论】:

    标签: adb android-sdk-tools


    【解决方案1】:

    将 sdk/platform-tools 更新到版本 29 后,我有同样的错误,要解决:

    打开 Android Studio,然后在“SDK 工具”选项卡上转到“文件”>“设置”>“Android SDK”并取消选中 “Android SDK Platform-Tools 29”并点击“Apply”卸载platform-tools

    那么。从此链接下载平台工具 28 https://dl.google.com/android/repository/platform-tools_r28.0.0-windows.zip 解压sdk目录下的“platform-tools”,例如:“C:\Users\User\AppData\Local\Android\sdk”

    要检查是否正常,请参阅“SDK 工具”选项卡上的文件>设置>Android SDK,现在看起来像图像

    【讨论】:

      猜你喜欢
      • 2023-01-20
      • 1970-01-01
      • 2022-10-30
      • 1970-01-01
      • 2018-11-28
      • 2018-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多