[Appium] appium 启动时报错android.permission.CLEAR_APP_USER_DATA to clear data of package package

手机型号:小米8 

Android系统: Android 8.0.1

为什么清除app缓存时会报错呢?

[MJSONWP] Encountered internal error running command: Error: Error executing adbExec. Original error: ‘Command ‘/Users/maqiongke/import/android-sdk-macosx/platform-tools/adb -P 5037 -s 7ee8df2 shell pm clear com.ren001.android’ exited with code 1′; Stderr: ‘Error: java.lang.SecurityException: PID 12114 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.ren001.android’; Code: ‘1’

    原文作者:花花_570d
    原文地址: https://www.jianshu.com/p/7f60572c1212
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞