Open renetik opened 1 year ago
Please may you try with that:
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'
}
...
}
Well I dont like this solution you propose as it will clutter build gradle. Isnt it better to just ommit and use that cmake solution ? Or you cannot for other reason ? For now I am good as it is I just commented it out, everything seems ok, depended code use libc++_shared from your lib obviously.
I believe library shall not add its own c++_shared lib. When we have build arguments:
Build fails with:
2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs: