How to get Pixel 5 emulator in Android Studio

Viewed 12662

I have a flutter app that builds and runs fine on Pixel 4a, but apparently fails to start on Pixel 5. I want to test this on a Pixel 5 emulator, but I can't find how to add it to Android Studio anywhere.

I downloaded the preview release of Android Studio and followed the other steps in the link in the answer to this question, but there is no Pixel 5 there.

Any ideas?

3 Answers

I just created a profile. In Android Studio:

  • Open AVD manager
  • Click New Hardware Profile
  • Enter suitable device name e.g. "Pixel 5 API 30"
  • Screen size is 6.0", Resolution is 1080 x 2340
  • In the Default Skin dropdown, try Pixel 4 XL (this adds the black surround to the AVD. Note that if you use "No skin", it doesn't add the surround shape to the resulting AVD, but you get a useful heading at the top showing its name)
  • I accepted the rest of the defaults
  • Click Finish
  • Click Next to get to System Image dialog
  • Select suitable image e.g. R - API 30
  • Click Next
  • Click Finish

Android Studio Arctic Fox (2020.3.1) has an emulator for Pixel 5.

However, it does not have an emulator for Pixel 5a (which I just bought). I will try creating a new hardware profile for my 5a...

Related