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

MissingLibraryException: libmmkv.so #863

Closed
sunmTree opened this issue Mar 31, 2022 · 2 comments
Closed

MissingLibraryException: libmmkv.so #863

sunmTree opened this issue Mar 31, 2022 · 2 comments

Comments

@sunmTree
Copy link

Note:

An crash issue will be ignored & closed in a week without logs.

The language of MMKV

Java & Kotlin

The version of MMKV

v1.2.12

The platform of MMKV

Android

The installation of MMKV

Maven

What's the issue?

主线程使用 MMKV,报错: MissingLibraryException: libmmkv.so

What's the log of MMKV when that happened?

Caused by com.getkeepsafe.relinker.MissingLibraryException: libmmkv.so
at com.getkeepsafe.relinker..(SearchBox:128)
at com.getkeepsafe.relinker..h(SearchBox:180)
at com.getkeepsafe.relinker.
.(SearchBox:136)
at com.getkeepsafe.relinker.ReLinker.
(SearchBox:70)
at com.getkeepsafe.relinker.ReLinker.loadLibrary(SearchBox:51)
at com.dubox.drive.kernel.architecture.config..fM(SearchBox:63)
at com.dubox.drive.kernel.architecture.config.
.lambda$CL6XNs9XNodgh0oaTenuhs7TMsA()
at com.dubox.drive.kernel.architecture.config.-$$Lambda$$CL6XNs9XNodgh0oaTenuhs7TMsA.loadLibrary(:2)
at com.tencent.mmkv.MMKV.doInitialize(SearchBox:189)
at com.tencent.mmkv.MMKV.initialize(SearchBox:227)
at com.dubox.drive.kernel.architecture.config.
.load(SearchBox:62)
at com.dubox.drive.kernel.architecture.config.___.put(SearchBox:112)
at com.dubox.drive.kernel.architecture.config.
.putInt(SearchBox:21)

部分代码:

 // 初始化MMKV文件 ReLinker防止部分机型so找不到
MMKV.initialize(mParameter.getStoragePath(), libName -> {
       ReLinker.loadLibrary(mParameter.getContext(), libName);
});
@lingol
Copy link
Collaborator

lingol commented Mar 31, 2022

Did you use MMKV on the armeabi arch? We don't support it anymore.

@lingol lingol closed this as completed Apr 6, 2022
@sunmTree
Copy link
Author

sunmTree commented Apr 7, 2022

"armeabi-v7a", "arm64-v8a"
项目支持这两种

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

2 participants