【Android Studio执行单元测试时提示Injecting to another application requires INJECT_EVENTS permission】

1)报错信息:Injecting to another application requires INJECT_EVENTS permission

2)解决方案:

开发者选项里面---》打开USB调试(安全设置)

备注:打开这个就允许通过USB调试修改权限或模拟点击事件了

原文地址:https://www.cnblogs.com/xmmc/p/13710334.html