Andy D
Andy D

Reputation: 125

How to add API level into NDK?

IDE asks me for android-14 for NDK. How could I get it ? enter image description here

I have r18b version of NDK. Here is what I have in platforms directory:

enter image description here

Upvotes: 0

Views: 1036

Answers (2)

shizhen
shizhen

Reputation: 12583

android-14 was removed since ndk r18b, You can download an older version of NDK, e.g. android-ndk-r16b from here:https://developer.android.com/ndk/downloads/older_releases, unzip it and you will see android-14 available inside /android-ndk-r16b/platforms/.

About how to decide the proper android platform for your NDK build, you can check my recent answer to another thread: https://stackoverflow.com/a/53477672/8034839

Upvotes: 0

Alex Cohn
Alex Cohn

Reputation: 57163

This android-14 is just an example. You can choose the best platfrom level that is good for your project. RAD Studio v10.3 supports Android platforms 21 and higher. If you choose e.g. android-24, your APK will not run reliably on devices with Lollipop or Marshmellow, but such choice lets you use more APIs (e.g. Native cmaera2).

Upvotes: 3

Related Questions