There are two kinds to build Android with NDK
cmake
externalNativeBuild {
cmake {
path "../sharedCode/CMakeLists.txt"
}
}
This works fine with Apple Silicon M1
ndk-build
externalNativeBuild {
ndkBuild {
path "src/main/jni/Android.mk"
}
}
On a Apple Silicon M1 I run into
Unknown host CPU architecture arm64
The question is to solve this ?