Skip to content

Instantly share code, notes, and snippets.

@jonpryor
Created March 17, 2017 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonpryor/86c55980585f194c78e87bf0060d1009 to your computer and use it in GitHub Desktop.
Save jonpryor/86c55980585f194c78e87bf0060d1009 to your computer and use it in GitHub Desktop.

Android NDK, SDK

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment