-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Espresso Driver: Instrumentation permission denial, package does not have signature matching target #791
Comments
Could you share the full appium log as GitHub GIST? Generally, the app under test and the espresso server must have the same signature. Appium espresso driver manages them in the new session request process. If they have the same signature, below command will print the same info.
|
https://github.com/appium/appium-espresso-driver#requirements
|
@KazuCocoa here is the appium log gist I also created a brand new blank app and tried doing the same thing with connecting with Espresso driver and got the same signature mismatch error. In any case, here are the signatures from my original AUT and Espresso server APK (which clearly have a mismatch.) What would be the solution / happy path for connecting appium w/ espresso driver to my AUT without running into this error consistently? Signatures:espresso server: AUT: As a side note: ... I tried the solution posted in another thread with adding the additional capability Thanks for your help, it's much appreciated! If I can get this resolved I will probably cry tears of happiness. |
Update: I was able to get around this by using the desired cap I'm running into a new error now with a dependency for my AUT. java.lang.NoSuchMethodError: No virtual method addOnContextAvailableListener(Landroidx/activity/contextaware/OnContextAvailableListener;)V in class Landroidx/appcompat/app/AppCompatActivity; or its super classes (declaration of 'androidx.appcompat.app.AppCompatActivity' appears in /data/app/~~gLeNIL_ZctaVfPNHa57SEg==/com.example.myApplication--bNQEXbOq5Hzwz4r2YOXfg==/base.apk) |
I am running exact to same issue!
|
@amir-lili , to resolve the issue, you should create either your own keystore or ask a dev to provide one, then add use the following desired capabilities: |
Hello,
I'm on Mac OS 12.4 Monterey running Appium Desktop 1.22.3 and the separate inspector tool 1.22.3, along with Gradle v 6.5. When trying to connect Appium to my APK on my emulator (API 30), I keep getting this error:
[Instrumentation] INSTRUMENTATION_STATUS: Error=Permission Denial: starting instrumentation ComponentInfo{io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner} from pid=4647, uid=4647 not allowed because package io.appium.espressoserver.test does not have a signature matching the target
I cleaned our project in Android Studio, wiped the emulator and reinstalled the build, and I still get this issue.
When I build from the command line instead of using Android Studio using
./gradlew installDebug
, the issue is the same.I've tried 30+ stackoverflow pages with varying solutions that don't work, including adding additional dependencies in the Android Manifest, adding
appium:allowTestPackages
as a desired capability, etc.It's important to note that I can successfully connect using the UIAutomator2.
The text was updated successfully, but these errors were encountered: