码迷,mamicode.com
首页 > 移动开发 > 详细

Appium报错: An unknown server-side error occurred while processing the command. Original error: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission

时间:2019-10-13 20:42:44      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:inf   security   ogr   and   lan   miss   exit   form   eve   

Appium 运行start session时报错An unknown server-side error occurred while processing the command.
Original error: Error executing adbExec.
Original error: ‘Command ‘‘D:\Program Files (x86)\Android-SDK\sdk\platform-tools\adb.exe’
-P 5037 -s e3172f55 shell pm clear com.tencent.mm’ exited with code 1’;
Stderr: ‘Error: java.lang.SecurityException: PID 12490 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.tencent.mm’; Code: ‘1’

解决方法:在开发者模式下,打开usb调试功能和use模拟点击,两个都要打开,此时再重新运行,即可解决。
技术图片

Appium报错: An unknown server-side error occurred while processing the command. Original error: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission

标签:inf   security   ogr   and   lan   miss   exit   form   eve   

原文地址:https://www.cnblogs.com/wangqianpeng/p/11668102.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!