Task :app:transformNativeLibsWithMergeJniLibsForDebug FAILED In React Native

By React Native Debugger

Infinitbility
Mar 26, 2020

This error occurs because of the build folder in the android folder

Follow Below steps to Solved error

Solution 1

Step 1: Delete Your Build Folders

  1. Delete build folder from android
  2. delete build folder from android/app

Step 2: Clean Your Project

I am assuming your terminal on your project root

$ cd android$ gradlew clean$ cd ..

Step 3: Run Your Project

$ npx react-native run-android

Solution 2

Error: More than one file was found with OS independent path ‘path_name’ with native error

add filename on the app/build.gradle showing on your error

android {
...
packagingOptions {
// file name depend on your error
pickFirst 'lib/x86/libc++_shared.so'
pickFirst 'lib/x86_64/libc++_shared.so'
pickFirst 'lib/arm64-v8a/libc++_shared.so'
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
}
}

Please clap for your solved error…

--

--