android-orb
android-orb copied to clipboard
NDK path is not correct
Orb version
2.5.0
What happened
I have this step in my CircleCI config:
- android/install-ndk:
version: "26.2.11394342"
Expected behavior
The issue is that ANDROID_NDK_HOME
is set to /opt/android/26.2.11394342
whereas the NDK is installed at path /opt/android/sdk/ndk/26.2.11394342
.
See the corresponding faulty code:
if [[ -d "${HOME}/android-sdk/ndk/${PARAM_VER}" ]]; then
android_ndk_home="$HOME/android-sdk/ndk/${PARAM_VER}"
elif [[ -d "/opt/android/sdk/ndk/${PARAM_VER}" ]]; then
android_ndk_home="/opt/android/${PARAM_VER}"