• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help I'm having problem upgrading my react native app to 64 bit

dex2908

Lurker
I'm having problem upgrading my app to 64 bit. I've already upgraded my previous React Native version to 0.59.3. Which is includes 64 bit but when I tried to run in my device, the app crashed.

The error i got is:
java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libimagepipeline.so caused by: dlopen failed: "/data/data/...../lib-main/libimagepipeline.so" is 64-bit instead of 32-bit

So from the error, it means android doesn't know how to choose the correct bit? The only solution to prevent the crash, is to use the following configuration:

packagingOptions {
exclude "lib/arm64-v8a/libgnustl_shared.so"
exclude '/lib/mips64/**'
exclude '/lib/arm64-v8a/**'
exclude '/lib/x86_64/**'
}

Which of course will get warning message from google because there are no 64bit codes in my apk. So how can I solve this problem?
 
Add :
ndk {
abiFilters "armeabi", "armeabi-v7a", "x86", "x86_64", "mips", "mips64"


}
in android {} to your build.gradle/APP file
 
Back
Top Bottom