Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android项目集成后libc++_shared.so库冲突(react native和百度地图) #474

Open
githubZYQ opened this issue Feb 20, 2024 · 0 comments

Comments

@githubZYQ
Copy link

描述这个问题

百度地图sdk和react-native以及gaiax都有依赖原生库libc++_shared.so,同时使用时会冲突

复现步骤

项目同时集成百度地图sdk、react-native、gaiax,再打包编译时即可复现。

预期正确的结果

正常编译打包

截图

image

客户端 (请填写如下信息) :
jetified-GaiaX-Analyze-0.4.3\jni\arm64-v8a\libc++_shared.so

崩溃日志
3 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs:

  • C:\Users\fengguangbo.gradle\caches\transforms-3\8d0b90ea59249438df5e1cd1e7c214b3\transformed\jetified-react-native-0.67.0\jni\arm64-v8a\libc++_shared.so
  • C:\Users\fengguangbo.gradle\caches\transforms-3\f358e75f51ba6b570ae86b46aa2e6540\transformed\jetified-GaiaX-Analyze-0.4.3\jni\arm64-v8a\libc++_shared.so
  • C:\Users\fengguangbo.gradle\caches\transforms-3\fb13694fea1425e8d2603265e37da9ae\transformed\jetified-base-7.6.1.1\jni\arm64-v8a\libc++_shared.so

附加信息
app的build.gradle中添加配置pickFirst可以解决冲突问题打包成功,但是pickFirst不能确定选择的库是哪一个,有一定风险,请问是否有其他更稳妥的方案呢?
packagingOptions { pickFirst 'lib/*/libc++_shared.so' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant