Note: A xamarin-android checkout maintains its own Android NDK + SDK to ensure consistent builds and build behavior, permitting reproducible builds and providing greater flexibility around when we need to perform Android SDK + NDK updates. The Android SDK and NDK are maintained by default via two directories in your home directory:
$(AndroidToolchainCacheDirectory)
: Where downloaded files are cached. Defaults to the$HOME/android-archives
directory.$(AndroidToolchainDirectory)
: Where the Android NDK and SDK are installed. Defaults to the$HOME/android-toolchain
directory.
Developers may use these directories for their own use, but please DO NOT
update or alter the contents of the $(AndroidToolchainDirectory)
, as that may
prevent the xamarin-android build from working as expected.
The files that will be downloaded and installed are controlled by
[build-tools/android-toolchain/android-toolchain.projitems][android-toolchain.projitems]
via the @(AndroidNdkItem)
and @(AndroidSdkItem)
item groups, and the
URL to download files from is controlled by the $(AndroidUri)
property.