jithin mp
jithin mp

Reputation: 95

Could not run the react-native application

I am getting this error while installing application.

More than one file was found with OS independent path 'lib/x86/libc++_shared.so'

Upvotes: 3

Views: 3652

Answers (1)

EL173
EL173

Reputation: 815

Add below to your app level build.gradle file in side the android tag

 android{
    ........

    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'
    }
  }

Upvotes: 9

Related Questions