Skip to content

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

@rnnyrk

Description

@rnnyrk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPlatform: AndroidAndroid applications.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions