Comments (20)
Google is a good tool. Use it before asking questions.
I googled this and Google brought me here, to this snarky comment
from mmkv.
Google is a good tool. Use it before asking questions.
As for this issue, the very first hit by Google has an answer.
If you have a library that's adding some android .so files –like libassmidi.so or libgnustl_shared.so– you have to tell gradle to pick just one when packaging, otherwise you'll get the conflict.
android {
packagingOptions {
pickFirst 'lib/x86/libc++_shared.so'
}
}
from mmkv.
Google is a good tool. Use it before asking questions.
I googled this and Google brought me here, to this snarky comment
Wow, that's the joke of the week in such a hard time due to the virus.
from mmkv.
Google is a good tool. Use it before asking questions.
As for this issue, the very first hit by Google has an answer.
If you have a library that's adding some android .so files –like libassmidi.so or libgnustl_shared.so– you have to tell gradle to pick just one when packaging, otherwise you'll get the conflict.
android { packagingOptions { pickFirst 'lib/x86/libc++_shared.so' } }
Not fixed for me.
from mmkv.
This works for me.
android { packagingOptions { pickFirst '**/*.so' } }
from mmkv.
Google is a good tool. Use it before asking questions.
As for this issue, the very first hit by Google has an answer.
If you have a library that's adding some android .so files –like libassmidi.so or libgnustl_shared.so– you have to tell gradle to pick just one when packaging, otherwise you'll get the conflict.
android { packagingOptions { pickFirst 'lib/x86/libc++_shared.so' } }
I added this first but didn't work but when i tried like that it worked successfully, thanks to lingol for the hint.
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'
}
}
from mmkv.
This works for me.
android { packagingOptions { pickFirst '**/*.so' } }
yeah... its worked for me... thank u so much bro
from mmkv.
android {
packagingOptions {
pickFirst '**/*.so'
}
}
This works for me. Thanks.
from mmkv.
Google is a good tool. Use it before asking questions.
As for this issue, the very first hit by Google has an answer.If you have a library that's adding some android .so files –like libassmidi.so or libgnustl_shared.so– you have to tell gradle to pick just one when packaging, otherwise you'll get the conflict.
android { packagingOptions { pickFirst 'lib/x86/libc++_shared.so' } }
Not fixed for me.
Use static-linked instead https://github.com/Tencent/MMKV/wiki/android_setup#installation
from mmkv.
Now you get another choice, MMKV has a static-link version. Checkout our release note. (https://github.com/Tencent/MMKV/releases).
from mmkv.
@lingol after upgrading to AndroidX this solution doesn't seem to work anymore.
from mmkv.
@lingol after upgrading to AndroidX this solution doesn't seem to work anymore.
Try static link. com.tencent.mmkv-static:1.0.22
from mmkv.
Google is a good tool. Use it before asking questions.
As for this issue, the very first hit by Google has an answer.If you have a library that's adding some android .so files –like libassmidi.so or libgnustl_shared.so– you have to tell gradle to pick just one when packaging, otherwise you'll get the conflict.
android { packagingOptions { pickFirst 'lib/x86/libc++_shared.so' } }
I added this first but didn't work but when i tried like that it worked successfully, thanks to lingol for the hint.
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'
}
}
For those who still face this problem, just use com.tencent:mmkv-static
.
from mmkv.
FYI, starting from v1.2.11, MMKV will statically link libc++ by default. It will solve this problem once and for all.
For those who still prefer a shared link of libc++.so, use com.tencent:mmkv-shared
instead.
from mmkv.
android { packagingOptions { pickFirst '**/*.so' } }
This works for me. Thanks.
You should use mmkv-static instead. For different versions of libc++_shared.so will cause unexpected crashes.
from mmkv.
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/armeabi-v7a/libfbjni.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake
In app/build.gradle file
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"
}
from mmkv.
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/armeabi-v7a/libfbjni.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake
In app/build.gradle file
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" }
You should just use upgrade to mmkv 1.2.11 and above.
from mmkv.
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/armeabi-v7a/libfbjni.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake
In app/build.gradle file
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" }
You should just use upgrade to mmkv 1.2.11 and above.
how to update it?
from mmkv.
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/armeabi-v7a/libfbjni.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake
In app/build.gradle file
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"
}
You should just use upgrade to mmkv 1.2.11 and above.
how to update it?
What? You have not imported MMKV? Why'd you ask question here?
from mmkv.
More than one file was found with OS independent path 'lib/armeabi-v7a/libfbjni.so'. If you are using jniLibs and CMake IMPORTED targets, see
coz I am having this error...
More than one file was found with OS independent path 'lib/armeabi-v7a/libfbjni.so'. If you are using jniLibs and CMake IMPORTED targets, see
from mmkv.
Related Issues (20)
- kv_system和crc文件移动到其他app 不能读取和写入 HOT 4
- iOS App 切到后台Crash
- Could adding a trim() method result in incorrect data state? HOT 4
- Please modify README about install in `MMKV for Win32` HOT 2
- mmkv rootDir问题请教 HOT 1
- MMKV::checkFileCRCValid Got CRC error HOT 2
- checkcrc anr when the file it too large HOT 4
- 【Android】1.3.3版本多进程初始化,导致数据丢失 HOT 5
- iOS mmkv 沙盒目录下 权限问题 HOT 13
- Privacy Manifes HOT 1
- 能否加上visionOS的支持 HOT 2
- Privacy Manifes HOT 1
- iOS依赖了底层C++库,iOS上层和底层C++都想使用mmkv,该怎么集成mmkv到项目中
- 你好,有个崩溃帮忙看下 HOT 5
- 支持win x64吗?一直编译不了,能帮忙看看吗 HOT 8
- Non-fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library "libmmkv.so" not found HOT 1
- MMKV组件升级,双版本数据校验不匹配 HOT 4
- 鸿蒙Next纯血版本如何接入mmkv? HOT 19
- crash with MMKV.getInt[DEDUPED] HOT 10
- 升级MMKV CRC校验失败 数据清理 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmkv.