Search code examples
androidandroid-ndkc++builderandroid-api-levels

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


Solution

  • 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).