Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: androidlib@4.1.0
    • Component/s: androidlib
    • Labels:
    • Story Points:
      8
    • Sprint:
      2020 Sprint 3

      Description

      Summary:
      As of 2019, Google introduced a new NDK "side-by-side" feature which allows you to install multiple NDK versions under the Android SDK directory. All new NDK versions are downloaded to the side-by-side directory and it replaces the old "ndk-bundle" directory.

      Example:
      The folder structure appear as follows on macOS...
      ~/Library/Android/sdk/ndk/19.2.5345600
      ~/Library/Android/sdk/ndk/20.1.5948922
      ~/Library/Android/sdk/ndk/21.0.5935234
      ~/Library/Android/sdk/ndk/21.0.6113669

      There will be an "ndk" directory under the "Android/sdk" directory. Each subdirectory under "ndk" will be the version number of the installed NDK.

      Old Behavior:
      Before the NDK side-by-side feature existed, Android Studio used to install the NDK under the Android SDK directory as shown below. Updating the NDK version used to replace the old version. Android Studio no longer installs to this directory.
      ~/Library/Android/sdk/ndk-bundle

      To be done:
      The CLI should search for the installed NDK directory in the following order.

      1. The "ANDROID_NDK" environment variable, if set.
      2. The newest NDK side-by-side version subdirectory, if available.
      3. The "ndk-bundle" directory.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                cbarber Chris Barber
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration