Appium运行报错:does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package

问题描述

平台:红米 Note 4X
系统:Android 7.0

Error: java.lang.SecurityException: PID 16743 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.miui.calculator

解决方案

  • open Developer Options
  • enable USB debugging(Security settings)

即

  • 打开开发者选项
  • 允许USB调试(安全设置)

即允许通过USB调试修改权限或模拟点击

上一篇 让新版Appium支持ByName定位
下一篇 Appium自动化测试(5)—— java-client安装与测试
目录
文章列表
1 RxJava2学习之一:观察者模式
RxJava2学习之一:观察者模式
2
Android启动页黑屏及最优解决方案
Android启动页黑屏及最优解决方案
3
在Spring Boot中使用Java线程池ExecutorService
在Spring Boot中使用Java线程池ExecutorService
4
Vue项目中使用qrcode生成二维码
Vue项目中使用qrcode生成二维码
5
高中数学基础:平面向量
高中数学基础:平面向量
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。