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


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模拟点击,两个都要打开,此时再重新运行,即可解决。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 Appium异常:An unknown server-side error occurred while processing the command. Original error: Could n appium报错:An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: read ECONNRESET appium 报错:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Can't stop process; it's not currently runni... Appium(四) selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: You must include a platformName capability An unknown server-side error occurred while processing the command.处理 python appium自动化报“Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server [Android]ADB调试: SecurityException: Injecting to another application requires INJECT_EVENTS permission python+appium运行提示找不到adb.exe “An unknown server-side error occurred while processing the command. Original error: Could not find 'adb.exe' in ["D:\\adt\\sdk;\\platform-tools\\adb.exe"” Appium问题解决方案(8)- selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate. 小米手机滑屏操作-appium自动化报错Injecting to another application requires INJECT_EVENTS permission
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM