question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Detox no longer builds with 2.10.0

See original GitHub issue

Description

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

  1. Create a new react native project on 0.68.2
  2. Follow detox sets for setting up react native do not use precompiled .aar
  3. 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:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tomekzawcommented, Sep 16, 2022

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

1reaction
scottwiocommented, Sep 8, 2022

@tomekzaw perfect that does the job, thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found