我尝试在本地运行应用程序爬虫,以测试在Android Studio中创建的机器人脚本。
我遵循了这篇有用的文章(https://android.jlelse.eu/test-robo-scripts-locally-useful-for-firebase-test-lab-pre-launch-reports-41da83d5769f),但遇到了一个问题,爬虫只是显示爬行已启动并立即结束。我在谷歌上找不到任何答案解决此问题。
以下是日志中的错误:
Permission Denial: starting instrumentation ComponentInfo{androidx.test.tools.crawler/androidx.test.tools.crawler.CrawlMonitor} from pid=3778, uid=3778 not allowed because package androidx.test.tools.crawler does not have a signature matching the target androidx.test.tools.crawler.stubapp
最终我找到了解决方案,现在将此问题发布出来,以帮助那些可能像我一样被卡住的人。听起来有些人在这个问题中遇到了同样的问题(https://stackoverflow.com/a/58631206/13071692)。