I used to build arm64-v8a lib of api level 19 use android.toolchain.cmake
comes with Android NDK r16b like this.
${CMAKE} \
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
-DANDROID_NDK=$ANDROID_NDK_HOME \
-DANDROID_ABI="arm64-v8a" \
-DANDROID_NATIVE_API_LEVEL="android-19" \
-DANDROID_STL="c++_shared" \
-DANDROID_CPP_FEATURES="rtti exceptions" \
..
Now i want to pack my lib use conan
which cross compile android lib use standalone toolchain. Its seems to be impossible to make standalone toolchain with --arch arm64
and --api 19
, since the following command
./make_standalone_toolchain.py --arch=arm64 --api=19 --stl=libc++ --install-dir=./test
will fail with error message:
19 is less than minimum platform for arm64 (21)
is there any way to fix this?
minSdkVersion
to 19. – Portaltoportal