When my app runs in Android 6.0 or below devices(Nexus 5, Galaxy 3...), it crashes at System.loadLibrary("mylib");
It works fine with Android 7.0 devices(Nexus 5x, Nexus 9). I use latest Android Studio(2.2) and NDK.
Log cat message is
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__aeabi_memcpy8" referenced by mylib.so.
Below is part of build.gradle.
compileSdkVersion 24
buildToolsVersion '24.0.2'
defaultConfig {
applicationId "myApp"
minSdkVersion 10
targetSdkVersion 24 // Whatever this is, it crashes(22, 19...).
ndk {
moduleName "mylib"
}
}
Below is Application.mk
APP_ABI := armeabi armeabi-v7a x86
APP_PLATFORM := android-10 // Whatever this is, it crashes.
What is the problem?
Even if I comment out all memcpy in .c files, it issues the same error message. Before I run, I clear and rebuild project.