How to fix INJECT_EVENT permission exception when sending touches to an ActivityInstrumentationTestCase2 test

荒凉一梦 提交于 2019-12-05 13:24:00

This probably means that your main project, your test project or your emulator versions are out of sync.

It might help others.

Problem we got is

Failed to perform gesture. java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission (RuntimeError")

In my case, the problem was with the

Network not connected

. Once fixed the network connection issue, tests are started running.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!