Task :app:transformNativeLibsWithMergeJniLibsForDebug FAILED In React Native

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…

--

--

--

Subscribe my newsletter to get weekly updates. — https://infinitbility.com/about

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Search keyword(tag) filtering and counting from snippet(text) of information

How to design a parking lot using?

Day.js Alternative for MomentJS

OnebayUI (A mobile web UI library write by vue3)

Why choose MERN stack?

Webpack 5 and Typescript with Serverless framework

Simple Multiplayer Game with Socket.io Tutorial — Part One: Setup and Movement

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Infinitbility

Infinitbility

Subscribe my newsletter to get weekly updates. — https://infinitbility.com/about

More from Medium

React Native Geolocation with Firebase

Do you want to migrate from Ionic to React Native? I can help

Ionic to React Native Roadmap

Hide bottom tab bar on a specific screen in React Navigation 6.0

How to reuse or adapt React components in React Native using WebView on Android?