-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Can't run Detox Android on AppCenter - adb -s shell pm install
failed with code null
#3711
Comments
I'm having the same issue but in my case it's happening on my local machine and using the example app from the repository. Would you mind trying to run that example on your machine as well? |
I just wonder if it can be something ProGuard-related. 🤔 I'm not very familiar with the context but is it possible to reproduce that for your debug app flavor? |
Thanks for brainstorming @noomorph but in my case, I turned off shrinking in my app for testing purposes minifyEnabled false Also, the release version runs fine locally without any code changes. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this repository, read this discussion. |
I still don't have a solution to this. I will try a few other ways. I really hope someone from the Detox team could help me out here. |
The issue has been closed for inactivity. |
Description
I know it's quite tricky to get Detox running on AppCenter as the platform has not yet geared up to support Detox but I can't see why it shouldn't.
AppCenter runs on MacOS and so does my local machine. The only difference is I had to install the Android SDK tools manually, which is not a problem. After that, I had a pretty similar environment to run Detox locally and on AppCenter in release mode.
Here my Detox setup for the release build with a flavor
releaseE2E
:My first test was to run Detox locally, which of course performed as expected. I didn't bother to log in
trace
mode asverbose
gave me the same important log. Please pay attention toSPAWN_CMD, #19
So far so good. My assumption was that it should run on AppCenter with the same configuration but it failed on
SPAWN_CMD, #19
withterminated with SIGTERM
I went through countless bug reports and blogs and found a solution from @d4vidi where he suggested installing the
app-releaseE2E-androidTest.apk
viaadb install
command and use the--reuse
flag in the Detox test like thatthat resulted in another issue INSTRUMENTATION_FAILED, although the log of
adb -s emulator-5554 shell pm list instrumentation
clearly shows that the app has the correct instrumentationAfter that I thought I would install the release APK
app-releaseE2E.apk
viaadb install
command and use the--reuse
flag in the Detox test like thatthat resulted in another issue No instrumentation runner found and the log of
adb -s emulator-5554 shell pm list instrumentation
showed no outputAt this point, I'm out of ideas. If someone has another suggestion please share it with me.
@d4vidi perhaps you have an idea?
I have also posted that issue on SO
Your environment
Detox version: 19.12.6
React Native version: 0.67.0
Node version: 16.15.0
Device model: Pixel_API_29_AOSP (system-images;android-30;aosp_atd;x86)
OS: Android
Test-runner (select one): jest
The text was updated successfully, but these errors were encountered: