Appium运行时报does not have permissi
2019-03-21 本文已影响0人
多夏_zoey
在oppo R15 操作系统:Android8.1.0手机上运行h5 ui自动化用例时,报错:Error: Failed to start Chromedriver session: An unknown server-side error occurred while processing the command. (Original error: unknown error: Failed to clear data for com.android.chrome on device I7BAJ7IRSKSS9PU4: Error: java.lang.SecurityException: PID 26808 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.android.chrome。
尝试后2种方法可解决:
1)增加配置项noReset=true
2)除了常见开发者选项中打开usb调试,同时还需要开启以下2项,然后重启手机即可

