Detox no longer builds with 2.10.0
See original GitHub issueDescription
When using the latest version of reanimated 2.10.0 I can no longer create detox test builds. When running assembleAndroidTest the task fails with the error message.
Execution failed for task ':react-native-reanimated:mergeDebugAndroidTestJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
> 23 files found with path 'META-INF/MANIFEST.MF' from inputs:
I can fix this by reverting to 2.9.1. When back on 2.9.1 the build completes without issue. It looks like the packaging options have changed between two versions, might have something to do with it.
Steps to reproduce
- Create a new react native project on 0.68.2
- Follow detox sets for setting up react native do not use
precompiled .aar - try and run
assembleAndroidTest
Reanimated version
2.10.0
React Native version
0.68.2
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Android emulator
Device model
Emulator system-images;android-28;default;arm64-v8a
Acknowledgements
Yes
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Dealing With Problems With Building the App & Detox
This page is about issues related to building the app, typically triggered when running detox build (and not detox test, for example).
Read more >Struggling to get Android build working due to minSdkVersion
I am unsure why regular Android builds succeed and Detox builds fail, but the fix is to edit the library's android/build.gradle and change...
Read more >Android App build error - I have no idea what to do
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with...
Read more >Debian -- Source Packages in "stretch"
... email2trac (2.10.0-2~deb9u1); embassy-domainatrix (0.1.660-1); embassy-domalign (0.1.660-1) ... google-android-build-tools-installer (23.0.3) [contrib] ...
Read more >app-accessibility/SphinxTrain 1.0.8 - Gentoo
... extracted from par2cmdline app-arch/lrzip 0.621: Long Range ZIP or Lzma ... diff and merge two directories recursively app-vim/easy-align 2.10.0-r1: vim ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hey @olexanderPotebenko, you still need to edit
node_modules/react-native-reanimated/android/build.gradleto apply the fix from #3384. You can achieve this either with patch-package or with a custom bash script.@tomekzaw perfect that does the job, thanks.