应安装哪些 Android SDK 包?Which Android SDK packages should I install?

安装 Android SDK 不会自动包括开发所需的所有最低包。Installing the Android SDK doesn't automatically include all the minimum required packages for developing. 尽管各个开发人员的需求各不相同,但通常需要以下包才能用 Xamarin 进行开发:While individual developer needs vary, the following packages will generally be required for developing with Xamarin.Android:

工具Tools

从 SDK 管理器的 "工具" 文件夹中安装最新的工具:Install the latest tools from the Tools folder in the SDK manager:

  • Android SDK 工具Android SDK Tools
  • Android SDK 平台-工具Android SDK Platform-Tools
  • Android SDK 生成工具Android SDK Build-Tools

Android 平台Android Platform(s)

为已设置为最小 & 目标的 Android 版本安装 "SDK 平台"。Install the "SDK Platform" for the Android versions you've set as minimum & target.

例如:Examples:

  • 目标 API 23Target API 23
  • 最小 API 23Minimum API 23

仅需安装适用于 API 23 的 SDK 平台Only need to install SDK Platform for API 23

  • 目标 API 23Target API 23
  • 最小 API 15Minimum API 15

需要安装 API 15 和23的 SDK 平台。Need to install SDK Platforms for API 15 and 23. 请注意,不需要在最小值和目标值之间安装 API 级别(即使你 backporting 了这些 API 级别)。Note that you do not need to install the API levels between the minimum and target (even if you are backporting to those API levels).

系统映像System Images

仅当你想要使用来自 Google 的现成 Android 模拟器时,才需要这些属性。These are only required if you want to use the out-of-the-box Android emulators from Google. 有关详细信息,请参阅Android Emulator 安装程序For more information, see Android Emulator Setup

附加程序Extras

通常不需要进行 Android SDK 额外的工作,但请注意,这可能是必需的,因为它们可能是必需的,具体取决于使用情况。The Android SDK Extras are usually not required; but it is useful to be aware of them since they may be required depending on your use case.

其他阅读材料Further Reading

以下指南介绍了这些选项,并详细介绍了 SDK 管理器中可用的不同包: Android SDK 管理器安装指南The following guide covers these options and goes into more detail about the different packages the SDK manager has avaliable: Android SDK Manager Setup Guide