Appium appium-desktop 链接真机时总是报错,杀了 5037 端口的进程也不行,求大神指导一下

赵野 · 2018年07月31日 · 最后由 雨夜狂奔 回复于 2018年07月31日 · 1681 次阅读

[MJSONWP] Encountered internal error running command: Error: Error executing adbExec. Original error: 'Command ''C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe' -P 5037 -s 33301995 shell pm clear com.xiangkan.android' exited with code 1'; Stderr: 'Error: java.lang.SecurityException: PID 8187 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.xiangkan.android'; Code: '1'

[MJSONWP] at ADB.execFunc$ (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:317:13)
[MJSONWP] at tryCatch (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
[MJSONWP] at GeneratorFunctionPrototype.invoke as _invoke

[MJSONWP] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw

[MJSONWP] at GeneratorFunctionPrototype.invoke (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册