[DAEMON-322] androidlib: NDK side-by-side support
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Critical |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2020-02-13T23:26:49.000+0000 |
Affected Version/s | n/a |
Fix Version/s | androidlib@4.1.0 |
Components | androidlib |
Labels | cb-next |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2020-02-11T15:59:43.000+0000 |
Updated | 2020-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.
PR: https://github.com/appcelerator/androidlib/pull/23