1、问题描述?
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'G:\\InstallSoftDirectory\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s 94c5c8b1 shell pm clear com.hazq.huiying.android' exited with code 1'; Command output: Error: java.lang.SecurityException: PID 26159 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.hazq.huiying.android

这个问题就是提示你,没有权限操作app,有些手机会有这个限制。
在开发者选项中找到 "禁止权限监控",我使用的是oppo手机。
然后页面就加载成功了。

博客指出Appium运行时出现创建会话失败的报错,原因为执行adb命令时无权限操作APP,部分手机存在此限制。以oppo手机为例,可在开发者选项中找到“禁止权限监控”来解决该问题,之后页面可加载成功。
2575

被折叠的 条评论
为什么被折叠?



