Need to know about the prerequisite for automating using Espresso

I would like to automate our android app with Espresso . Please let me know is there is any prerequisite that has to be done by developers before giving the build.

Error Message I get when I try to execute the script using Espresso automation
ERROR: JAR signer CERT.RSA: JAR signature META-INF/CERT.SF indicates the APK is signed using APK Signature Scheme v2 but no such signature was found. Signature stripped?
Original error: java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner} from pid=28240, uid=28240 not allowed because package io.appium.espressoserver.test does not have a signature matching the target xxx.yyy.zzzzzzzzz

@deepikathiru … Did you find any solution for this. Myself getting the same error. Can you please post here if you find any solution.