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