I have an issue with third party libraries that are imported to my project.
I read quite a lot of articles about that but do not get any information how properly han
After some time i investigate and understand that path were located my libs is right. I just need to add folders for different architectures:
ARM EABI v7a System Image
Intel x86 Atom System Image
MIPS System Image
Google APIs
If you got this error when working with your flutter project, you can add the following code in the module build.gradle
and within Android block
and then in the defaultConfig
block. This error happened when I was trying to make a flutter apk build.
android{
...
defaultConfig{
...
//Add this ndk block of code to your build.gradle
ndk {
abiFilters 'armeabi-v7a', 'x86', 'armeabi'
}
}
}
Doing flutter clean
actually worked for me
Android 9 and Android 11 emulators have support for arm binaries.
https://developer.android.com/studio/releases/emulator#support_for_arm_binaries_on_android_9_and_11_system_images
I had the same issue while using x86 emulator with API level 29, trying to install an apk targeting arm ABI.
I tried x86 emulator with API level 30 and it worked fine.
Anyone facing this while using cmake build, the solution is to make sure you have included the four supported platforms in your app module's android{} block:
externalNativeBuild {
cmake {
cppFlags "-std=c++14"
abiFilters "arm64-v8a", "x86", "armeabi-v7a", "x86_64"
}
}