error: uncaughtException: Cannot read property 'sockets' of null from Appium for Android emulator

error: uncaughtException: Cannot read property 'sockets' of null from Appium for Android emulator

在 Andriod 模拟器中启动我的应用程序时,我在 Appium 控制台中(主要是)收到以下错误。该应用程序是基于 sencha/cordova 的应用程序,但我认为不是因为这个。

错误:uncaughtException:无法读取 属性 'sockets' of null date=Thu Jan 29 2015 17:53:06 GMT-0800(太平洋标准时间),pid=4256,uid=null , gid=null, cwd=C:\Appium\Appium\node_modules\appium, execPath=C:\Appium\Appium\node.exe, version=v0.10.26, argv=[C:\Appium\Appium\node.exe, C:\Appium\Appium\node_modules\appium\lib\server\main.js, --address, 127.0.0.1, --port, 4723, --app, C:\mobile_apps\Mobile-release.apk, --avd, Table11, --预启动, --platform-name, Android, --platform-version, 19, --automation-name, Appium, --log-no-color], rss=50974720, heapTotal=37021696, heapUsed =22398760, loadavg=[0, 0, 0], uptime=203658.1265101, trace=[column=25, file=C:\Appium\Appium\node_modules\appium\lib\devices\android\uiautomator.js, function=, line=193, method=null, native=false, column=null, file=null, function=Array.forEach, line=null, method=forEach, native=true, column=11, 文件=C :\Appium\Appium\node_modules\appium\node_modules\underscore\underscore.js, function=Function..each..forEach, line=79, method=.each..forEach, native=false, column=5, file=C:\Appium\Appium\node_modules\appium\lib\devices\android\uiautomator.js, 函数=UiAutomator.handleBootstrapOutput, line=183, method=handleBootstrapOutput, native=false, column=8, file=C:\Appium\Appium\node_modules\appium\lib\devices\android\uiautomator.js, function=UiAutomator.outputStreamHandler, line=172, method=outputStreamHandler, native=false, column=17, file=events.js, function=Socket.EventEmitter.emit, line=95, method=EventEmitter.emit, native=false, column=14, file=_stream_readable.js, function= , line=746, method=null, native=false, column=17, file=events.js, function=Socket.EventEmitter.emit, line=92, method=EventEmitter.emit, native=false, 列=10,文件=_stream_readable.js,函数=emitReadable_,行=408,方法=null,native=false,列=5,文件=_stream_readable.js,函数=emitReadable,行=404,方法=null , native=false, column=9, file=_stream_readable.js, function=readableAddChunk, line=165, method=null, native=false], stack=[TypeError: Cannot read 属性 'sockets' 为 null,为 null。 (C:\Appium\Appium\node_modules\appium\lib\devices\android\uiautomator.js:193:25), 在 Array.forEach (native), 在 Function..each ..forEach (C:\Appium\Appium\node_modules\appium\node_modules\underscore\underscore.js:79:11), 在UiAutomator.handleBootstrapOutput (C:\Appium\Appium\node_modules\appium \lib\devices\android\uiautomator.js:183:5), 在 UiAutomator.outputStreamHandler (C:\Appium\Appium\node_modules\appium\lib\devices\android\uiautomator.js:172:8),在 Socket.EventEmitter.emit (events.js:95:17),在套接字处。 (_stream_readable.js:746:14), 在 Socket.EventEmitter.emit (events.js:92:17), 在 emitReadable_ (_stream_readable.js:408:10), 在 emitReadable (_stream_readable.js:404:5), at readableAddChunk (_stream_readable.js:165:9)]

我遇到了同样的问题。在覆盖现有会话后重新启动 appium 服务器对我有用。