androidfirebaseautomated-testsfirebase-test-lab

Android App Crawler not working -> Permission Denial failure


I was trying to run app crawler locally in order to test robo scripts created in Android Studio.

I followed this handy article (https://android.jlelse.eu/test-robo-scripts-locally-useful-for-firebase-test-lab-pre-launch-reports-41da83d5769f) and ran into an issue where the crawler just said crawl started and crawl finished immediately. I couldn't find any answers on google for this issue.

Here's the error from the logs:

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

I finally figured out a solution so I'm putting this question out to help those who might have been stuck like me. Sounds like some people had the same issue in this question (https://stackoverflow.com/a/58631206/13071692)


Solution

  • I figured out that this error is coming up because I was using a debug apk version of my app. It requires a signed version so once I created a signed version in android studio (Build > Generate Signed Bundle... ) it worked great