Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-322] androidlib: NDK side-by-side support

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusResolved
ResolutionFixed
Resolution Date2020-02-13T23:26:49.000+0000
Affected Version/sn/a
Fix Version/sandroidlib@4.1.0
Componentsandroidlib
Labelscb-next
ReporterChris Barber
AssigneeChris Barber
Created2020-02-11T15:59:43.000+0000
Updated2020-02-13T23:26:49.000+0000

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.

The "ANDROID_NDK" environment variable, if set.

The newest NDK side-by-side version subdirectory, if available.

The "ndk-bundle" directory.

Comments

  1. Chris Barber 2020-02-13

    PR: https://github.com/appcelerator/androidlib/pull/23

JSON Source