Skip to content
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

Get bare-expo compiling and running for Android #5987

ide opened this issue Oct 16, 2019 · 1 comment · Fixed by #6062

Get bare-expo compiling and running for Android #5987

ide opened this issue Oct 16, 2019 · 1 comment · Fixed by #6062


Copy link

@ide ide commented Oct 16, 2019

bare-expo is not compiling for Android because both our copy of RN and RNGH define UIManagerReanimatedHelper. We need to tell Gradle to exclude the copy in RNGH.

Repro: cd into react-native-lab/react-native, run ./gradlew :ReactAndroid:installArchives (this takes time), cd into bare-expo/android, run ./gradlew assemble.


Execution failed for task ':app:transformDexArchiveWithDexMergerForRelease'.
> java.lang.RuntimeException: java.lang.RuntimeException: Error while merging dex archives: 
  Learn how to resolve the issue at
  Program type already present: com.facebook.react.uimanager.UIManagerReanimatedHelper
@ide ide added the Launch-blocking label Oct 16, 2019
@ide ide added this to To do in SDK 36 via automation Oct 16, 2019
@ide ide mentioned this issue Oct 16, 2019
10 of 11 tasks complete

This comment has been minimized.

Copy link

@tsapeta tsapeta commented Oct 21, 2019

@ide Do we need to define our own UIManagerReanimatedHelper in react-native fork? Looks like they are the same, so maybe removing it from the fork would help?

SDK 36 automation moved this from To do to Done Oct 24, 2019
tsapeta added a commit that referenced this issue Oct 24, 2019
…pdate ReactAndroid (#6062)

# Why

Fixes #5987 

# How

- Removed `UIManagerReanimatedHelper` from the fork and added it to unversioned `expoview`. Ideally if we could update the command updating vendored modules to pull this file directly from `react-native-reanimated` but I think it's of less priority now since this file is not going to change.

- Updated `ReactAndroidCodeTransformer` to properly handle changes in `ExceptionsManagerModule` from RN.

- Updated `ReactAndroid` and `ReactCommon` folders, they were not in sync with `react-native` submodule.

# Test Plan

Running `./gradlew assemble` at `apps/bare-expo` works and `client_android` job passes now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
SDK 36
2 participants
You can’t perform that action at this time.