Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix ':app:mergeDebugNativeLibs' exection failed issue?

I had built a flutter app with some of the dependencies (from flutter pub). While running that application, It failed with this exception. How to fix this issue?

What went wrong:

Execution failed for task ':app:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > More than one file was found with OS independent path 'lib/x86/libc++_shared.so'

Thanks in advance.

like image 785
Sri Kathiravan Irulappan Avatar asked Oct 15 '25 15:10

Sri Kathiravan Irulappan


1 Answers

android {

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

do this inside your app build.gradle

like image 135
Abhijit Chakra Avatar answered Oct 17 '25 04:10

Abhijit Chakra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!