You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the detox build command for the below detox configuration, "android.release": { "type": "android.apk", "binaryPath": "android/app/build/outputs/apk/releaseE2E/app-releaseE2E.apk", "build": "cd android ; ./gradlew assembleReleaseE2E assembleAndroidTest -DtestBuildType=releaseE2E && cd .." }
build fails with the following message:
`> Task :app:processReleaseE2EAndroidTestResources FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processReleaseE2EAndroidTestResources'.
A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:: AAPT: error: resource style/Widget.AppCompat.TextView (aka global.mattr.mobile.verifier.test:style/Widget.AppCompat.TextView) not found.
error: resource style/Widget.AppCompat.TextView (aka global.mattr.mobile.verifier.test:style/Widget.AppCompat.TextView) not found.
error: failed linking references.`
I've managed to get over this issue by changing the build.gradle file from androidTestImplementation('com.wix:detox:+') to implementation('com.wix:detox:+'), but when attempting to run the binary built, it throws the following error: detox[4773] ERROR: [EXEC_FAIL, #49] ""/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "ps | grep \"global\.mattr\.mobile\.verifier$\""" failed with error = ChildProcessError: Command failed: "/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "ps | grep \"global\.mattr\.mobile\.verifier$\""
The app is successfully installed on the emulator and can be opened manually fine afterwards. Also, running the failed command after opening the app once runs fine. It seems to be failing to launch the app for some reason.
Exactly the same project runs successfully for debug build and run with the following config: "android.debug": { "type": "android.apk", "binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk", "build": "cd android ; ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug ; cd -" },
We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.
Feel free to post your Stack Overflow question here for more visibility! We'll take a look at it.
Refer to this discussion for more information about our policy on issues.
What happened?
When running the
detox build
command for the below detox configuration,"android.release": { "type": "android.apk", "binaryPath": "android/app/build/outputs/apk/releaseE2E/app-releaseE2E.apk", "build": "cd android ; ./gradlew assembleReleaseE2E assembleAndroidTest -DtestBuildType=releaseE2E && cd .." }
build fails with the following message:
`> Task :app:processReleaseE2EAndroidTestResources FAILED
FAILURE: Build failed with an exception.
Execution failed for task ':app:processReleaseE2EAndroidTestResources'.
I've managed to get over this issue by changing the build.gradle file from
androidTestImplementation('com.wix:detox:+')
toimplementation('com.wix:detox:+')
, but when attempting to run the binary built, it throws the following error:detox[4773] ERROR: [EXEC_FAIL, #49] ""/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "ps | grep \"global\.mattr\.mobile\.verifier$\""" failed with error = ChildProcessError: Command failed: "/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "ps | grep \"global\.mattr\.mobile\.verifier$\""
The app is successfully installed on the emulator and can be opened manually fine afterwards. Also, running the failed command after opening the app once runs fine. It seems to be failing to launch the app for some reason.
Exactly the same project runs successfully for debug build and run with the following config:
"android.debug": { "type": "android.apk", "binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk", "build": "cd android ; ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug ; cd -" },
Detox logs attached
detoxLogs.txt
What was the expected behaviour?
builds and runs detox tests successfully for release variant as with debug variant
Was it tested on latest Detox?
Did your test throw out a timeout?
Help us reproduce this issue!
In what environment did this happen?
Detox version: 19.5.7
React Native version: 0.67.4
Node version: 16.14.2
Device model: Macbook Pro (2019) macOS: Monterey
Android version: 11 (emulator)
Test-runner (select one): jest-circus
Detox logs
see attached
Device logs
Device logs
More data, please!
No response
The text was updated successfully, but these errors were encountered: