命令:app-inspector -u emulator-5554
错误如下:
{ Error: Command failed: /Users/xxxx/Library/Android/sdk/platform-tools/adb -s emulator-5554 push /usr/local/lib/node_modules/app-inspector/node_modules/uiautomatorwd/app/build/outputs/apk/app-debug.apk /data/local/tmp/com.macaca.android.testing

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket. (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close as _onclose
killed: false,
code: 1,
signal: null,
cmd: '/Users/xxxx/Library/Android/sdk/platform-tools/adb -s emulator-5554 push /usr/local/lib/node_modules/app-inspector/node_modules/uiautomatorwd/app/build/outputs/apk/app-debug.apk /data/local/tmp/com.macaca.android.testing' }


↙↙↙阅读原文可查看相关链接,并与作者交流