We’ve created an orb to simplify the process of installing the Android NDK in our Android convenience images:
Instead of updating our entire fleet of Android images every time a new version of the NDK is released, we’ve now provided a way for folks to simply use any CircleCI Android image (ideally one without the NDK preinstalled), and then quickly and easily install the NDK at job runtime. This step adds only 20-30 seconds to a given job’s runtime.
We may still update the version of the NDK shipped in our -ndk
-tagged Android image variants; however, this orb gives folks the ability to choose any version they like, as well as quickly change that version whenever a new version is released:
version: 2.1
orbs:
circleci-images: circleci/circleci-images@x.y.z
jobs:
build:
docker:
- image: circleci/android:your-tag
steps:
- checkout
- circleci-images/install-android-ndk
ndk-version: android-ndk-r19c # or any other version
Please give it a shot and feel free to share any feedback here or file any issues against the GitHub repository.