Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dlopen failed: library "/system/lib64/libhwuibp.so" not found : Honor 4C 64-bit octa-core CPU

Whenever I try to open camera/gallery through intent, I am getting this error in my Honor 4C mobile, Android version 6.0 with 64-bit octa-core CPU.

load: so=/system/lib64/libhwuibp.so

dlopen failed: library "/system/lib64/libhwuibp.so" not found

Basically I am trying to crop an image with help of OpenCV-2.4.13.1-android-sdk so file. But this error seems to be device related as in other mobiles the app is working totally fine, could anyone help me in this?

like image 536
Chetan Avatar asked Oct 03 '16 14:10

Chetan


1 Answers

Have you tried this solution?

Hi, I searched on the net these days and finally found the solution! If you are using Android studio, just edit the gradle.properties in the root folder and add android.useDeprecatedNdk=true. Then edit the build.gradle file in your app's folder, set abiFilters as below:

android {
    ....
    defaultConfig {
        ....
        ndk {
            abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
        }
    }
}

source: https://github.com/yixia/VitamioBundle/issues/305

like image 188
pleft Avatar answered Nov 15 '22 03:11

pleft