0

TL;DR Should I include the "Android Virtual Device" component when setting up Android Studio? 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 (i.e. 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. I plan to include all other (checked-by-default) components: Android SDK, Android SDK Platform, and Performance (Intel 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.

FYI here's the component description: "A preconfigured and optimized Android Virtual Device for app testing on the emulator. (Recommended)"

Screenshot of SDK Components Setup

And is this component redundant / related to the Performance (Intel HAXM) component? Description: "Enables a hardware-assisted virtualization engine (hypervisor) to speed up Android app emulation on your development computer. (Recommended)"

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Philip H
  • 300
  • 1
  • 17

1 Answers1

1

Android Virtual Device is an emulator that simulates Android devices on your computer, you can use this to run your app on virtual devices.

Should I include the "Android Virtual Device" component

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.

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:

  • SDK Tools 26.1.1 or higher
  • 64-bit processor
  • Windows: CPU with UG (unrestricted guest) support
  • HAXM 6.2.1 or later (HAXM 7.2.0 or later recommended)
Tamir Abutbul
  • 7,301
  • 7
  • 25
  • 53
  • Thanks Tamir! FYI I got stuck on the next step: https://stackoverflow.com/questions/52827966/running-intel-haxm-installer-takes-forever-with-android-studio-setup-wizard-on (hung for >3 hours, I've hit cancel and nothing happens). I also encountered https://stackoverflow.com/questions/37052934/android-sdk-location-should-not-contain-whitespace-as-this-cause-problems-with earlier. Since you're someone who does Android Apps for fun, I just wanted to know: is this par for the course? That is, do you spend more time coding or more time working around the tools? – Philip H Mar 21 '19 at 20:33
  • Glad I helped, please accept the answer so others can know that this is a good answer. And for your question - don't know what do you mean by working around the tools but I just love making new projects and whenever I need to learn a new tool to use I learn it from the internet. I`d say that I am spending most of my time on coding and learning new things – Tamir Abutbul Mar 21 '19 at 20:40
  • By "working around the tools" I mean: finding out there's basic bugs in often-used tools that boggle my mind. For instance, the whitespace issue is 4 years old!! And as the commenters point out (in https://stackoverflow.com/questions/29469403/your-project-location-contains-whitespace-android-studio): "It seems like Android Studio still lives in 80's and that is not acceptable..." and "It is ridiculous indeed. In my 15 years of computing experience i have never seen this in a program until now. Unbelievable.". Likewise, consensus is there "is clearly a bug in the installer."... for 5 months?!? – Philip H Mar 21 '19 at 23:13