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

[Android] Project not building anymore after deleting Android packagingOptions "transformNativeLibsWithMergeJniLibsForDevDebug" #26807

Closed
rnnyrk opened this issue Oct 10, 2019 · 2 comments
Labels
Bug Platform: Android Android applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@rnnyrk
Copy link

rnnyrk commented Oct 10, 2019

Hi there,

After I've updated to the latest version of React Native my project isn't building anymore. I found out it's due to removing the packagingOptions in android/app/build.gradle. After replacing the lines my project builds again on Android. What is the reason this was deleted from React Native?

    packagingOptions {
      pickFirst '**/armeabi-v7a/libc++_shared.so'
      pickFirst '**/x86/libc++_shared.so'
      pickFirst '**/arm64-v8a/libc++_shared.so'
      pickFirst '**/x86_64/libc++_shared.so'
      pickFirst '**/x86/libjsc.so'
      pickFirst '**/armeabi-v7a/libjsc.so'
    }

React Native version:

System:
    OS: macOS 10.15
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Memory: 573.43 MB / 8.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 10.11.0 - ~/.nvm/versions/node/v10.11.0/bin/node
    Yarn: 1.10.1 - /usr/local/bin/yarn
    npm: 6.4.1 - ~/.nvm/versions/node/v10.11.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
    Android SDK:
      API Levels: 23, 26, 28, 29
      Build Tools: 28.0.3, 29.0.0
      System Images: android-29 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 3.4 AI-183.6156.11.34.5522156
    Xcode: 11.0/11A420a - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0
    react-native: 0.61.1 => 0.61.1
  npmGlobalPackages:
    react-native-cli: 2.0.1

Steps To Reproduce

  1. Update react-native to 0.61.2
  2. Delete the lines in android/app/build.gradle
  3. Build the project for Android
  4. Error: > Task :app:transformNativeLibsWithMergeJniLibsForDevDebug FAILED
@rnnyrk rnnyrk added the Bug label Oct 10, 2019
@react-native-bot react-native-bot added the Platform: Android Android applications. label Oct 10, 2019
@stale
Copy link

stale bot commented Jan 8, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 8, 2020
@stale
Copy link

stale bot commented Jan 15, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Jan 15, 2020
@facebook facebook locked as resolved and limited conversation to collaborators Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: Android Android applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

2 participants