[error] [35m[MJSONWP][39m Encountered internal error running command: Error: Error executing adbExec. Original error: 'Command 'E\:\\soft\\android-sdk_r24.4.1-windows\\android-sdk-windows\\platform-tools\\adb.exe -P 5037 -s 3a23ccd0 shell ime enable io.appium.android.ime/.UnicodeIME' exited with code 4294967177'; Stderr: ''; Code: '4294967177'
[error] [35m[MJSONWP][39m at ADB.execFunc$ (C:\Program Files (x86)\Appium\resources\app\node_modules\appium-adb\lib\tools\system-calls.js:317:13)
[error] [35m[MJSONWP][39m at tryCatch (C:\Program Files (x86)\Appium\resources\app\node_modules\appium-adb\node_modules\babel-runtime\regenerator\runtime.js:67:40)
[error] [35m[MJSONWP][39m at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Program Files (x86)\Appium\resources\app\node_modules\appium-adb\node_modules\babel-runtime\regenerator\runtime.js:315:22)
[error] [35m[MJSONWP][39m at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (C:\Program Files (x86)\Appium\resources\app\node_modules\appium-adb\node_modules\babel-runtime\regenerator\runtime.js:100:21)
[error] [35m[MJSONWP][39m at GeneratorFunctionPrototype.invoke (C:\Program Files (x86)\Appium\resources\app\node_modules\appium-adb\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[error] [35m[MJSONWP][39m at <anonymous>
运行环境:
windows:10
Appium:v1.8
Android:v7.1
运行时抛出如上异常,搜了一圈没找到解决办法,合理使用搜索引擎,要不搜出一堆咩用的。
github上给出解决办法:
由于之前运行的时候设置了此选项,而返回时输入法未恢复导致
可以把以上两条使用的暂时删除,重新运行,即可用:
具体信息可参考:https://github.com/appium/python-client/issues/177