android-orb icon indicating copy to clipboard operation
android-orb copied to clipboard

NDK path is not correct

Open guillaume-tgl opened this issue 11 months ago • 0 comments

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}"

guillaume-tgl avatar Mar 18 '24 10:03 guillaume-tgl