简体   繁体   English

Android Studio 安装向导 --> Android 虚拟设备

[英]Android Studio Setup Wizard --> Android Virtual Device

TL;DR Should I include the "Android Virtual Device" component when setting up Android Studio? TL;DR 设置 Android Studio 时是否应包含“Android 虚拟设备”组件? Any reason it's recommended yet unchecked by default?有什么理由推荐它但默认情况下未选中?

Long version: I downloaded and installed Android Studio for Windows 64. I am now going through the initial setup wizard, and just chose the defaults so far (ie Install Type = standard, UI type = IntelliJ) but for SDK Components Setup I noticed the following: Android Virtual Device is unchecked by default, yet the description says it is Recommended .长版:我下载并安装了适用于 Windows 64 的 Android Studio。我现在正在完成初始设置向导,到目前为止只选择了默认值(即安装类型 = 标准,UI 类型 = IntelliJ)但对于 SDK 组件设置,我注意到以下:默认情况下未选中 Android Virtual Device,但描述中说它是Recommended I plan to include all other (checked-by-default) components: Android SDK, Android SDK Platform, and Performance (Intel HAXM).我计划包括所有其他(默认检查)组件:Android SDK、Android SDK 平台和性能(英特尔 HAXM)。 So... should I include this component?所以......我应该包括这个组件吗? / Any reason it's recommended yet unchecked by default? / 有什么理由推荐它但默认情况下未选中? I haven't done Android development before, so if you can clarify what type of apps would use this component, that would help.我之前没有做过 Android 开发,所以如果你能说明什么类型的应用程序会使用这个组件,那会有所帮助。

FYI here's the component description: "A preconfigured and optimized Android Virtual Device for app testing on the emulator. (Recommended)"仅供参考,这里是组件描述:“用于在模拟器上进行应用程序测试的预配置和优化的 Android 虚拟设备。(推荐)”

Screenshot of SDK Components Setup SDK 组件设置的屏幕截图

And is this component redundant / related to the Performance (Intel HAXM) component?这个组件是否冗余/与性能(英特尔 HAXM)组件相关? Description: "Enables a hardware-assisted virtualization engine (hypervisor) to speed up Android app emulation on your development computer. (Recommended)"描述:“启用硬件辅助虚拟化引擎(管理程序)以加快开发计算机上的 Android 应用程序仿真。(推荐)”

Android Virtual Device is an emulator that simulates Android devices on your computer, you can use this to run your app on virtual devices. Android Virtual Device 是一个模拟器,可以在您的计算机上模拟 Android 设备,您可以使用它在虚拟设备上运行您的应用程序。

Should I include the "Android Virtual Device" component我是否应该包含“Android 虚拟设备”组件

Well, if you want to test your app on a device that you don't own you can test it on an emulator instead.好吧,如果您想在不属于您的设备上测试您的应用程序,您可以改为在模拟器上进行测试。

Any reason it's recommended yet unchecked by default?有什么理由推荐它但默认情况下未选中?

If you want to use the emulator remember that it has additional requirements beyond the basic system requirements .如果您想使用模拟器,请记住它除了基本系统要求之外还有其他要求

so the emulator option is not checked by default because when you download android studio from the official site you can see the basic requirements(without the emulator requirements) and this is what you get.所以默认情况下不选中模拟器选项,因为当您从官方网站下载 android studio 时,您可以看到基本要求(没有模拟器要求),这就是您得到的。

if you want to use the emulator later this is ok but you need to remember that it will require some extra system requirements.如果您想稍后使用模拟器,这没问题,但您需要记住,它需要一些额外的系统要求。

From the documentation:从文档:

The Android Emulator has additional requirements beyond the basic system requirements for Android Studio:除了 Android Studio 的基本系统要求之外,Android 模拟器还有其他要求:

  • SDK Tools 26.1.1 or higher SDK 工具 26.1.1 或更高版本
  • 64-bit processor 64位处理器
  • Windows: CPU with UG (unrestricted guest) support Windows:支持 UG(无限制访客)的 CPU
  • HAXM 6.2.1 or later (HAXM 7.2.0 or later recommended) HAXM 6.2.1 或更高版本(推荐 HAXM 7.2.0 或更高版本)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM