System.loadlibrary Fails With Error: Java.lang.unsatisfiedlinkerror: Dlopen Failed: Cannot Locate Symbol "__aeabi_memmove4"
System.loadLibrary('nativefaceswap'); When I run my app I found this type of error in Android Studio. In logcat shows: java.lang.UnsatisfiedLinkError: dlopen failed: cannot loca
Solution 1:
Note: This is gradle experimental example.
The Ndk is forward compatable. You need to tell the ndk the minimum version of your app. example: inside app gradle file:
ndk {
moduleName = 'MyLib'
toolchain = 'clang'
cppFlags.addAll(['-fexceptions' ,'-frtti','-std=c++11','-Wall'])
ldLibs.addAll(['android','log','atomic'])
stl "c++_static"
platformVersion = "21" <<<<<<<<<<<<<<<<<<<<<<<- Minimum version
}
Post a Comment for "System.loadlibrary Fails With Error: Java.lang.unsatisfiedlinkerror: Dlopen Failed: Cannot Locate Symbol "__aeabi_memmove4""