Issue
I dowloaded NDK
through Android studio, added ANDROID_HOME
and NDK_HOME
variables, and run the below command, but nothing happened:
${NDK_HOME}/make_standalone_toolchain.py --api 28 --arch x86_64 --install-dir NDK/x86_64
Solution
I noticed that in NDK19+ the linker are coming prebuilt, and can be accessed as:
[target.x86_64-linux-android]
ar = "C:\Users\${user}\AppData\Local\Android\Sdk\ndk\${NKD_version}\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android-ar"
linker = "C:\Users\${user}\AppData\Local\Android\Sdk\ndk\${NKD_version}\toolchains\llvm\prebuilt\windows-x86_64\bin\x86_64-linux-android23-clang"
where the linker should include the minSdkVersion
for example x86_64-linux-android23-clang
means minSdkVersion
is API 23
Answered By - Hasan A Yousef
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.