首页 > 移动平台 > 详细

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:27:46      阅读:2192      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!