I believe library shall not add its own c++_shared lib.
When we have build arguments:
android {
compileSdkVersion project.properties.sdk_version
defaultConfig {
minSdkVersion project.properties.min_sdk_version
targetSdkVersion project.properties.sdk_version
externalNativeBuild {
cmake {
cppFlags "-std=c++14 -fexceptions"
arguments "-DANDROID_ARM_NEON=TRUE",'-DANDROID_STL=c++_shared'
}
}
}
I believe library shall not add its own c++_shared lib.
When we have build arguments:
Build fails with:
2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs:
If you are using jniLibs and CMake IMPORTED targets, see
https://developer.android.com/r/tools/jniLibs-vs-imported-targets